在 library 文件夹中创建了一个 games_account.rb 文件。下面是结构
module GamesAccounts
class GamesAccountsClient
.
.
.
.
.
end
end
尝试在控制器中执行 GamesAccounts::GamesAccountsClient.new 会给我错误
uninitialized constant GamesController::GamesAccounts
我什至添加了
config.autoload_paths += %W(#{config.root}/lib) in the applications.rb
我在这里做错什么了吗?