在库文件夹中创建了一个games_account.rb文件。以下是结构未初始化的常量GamesController :: GamesAccounts
module GamesAccounts
class GamesAccountsClient
.
.
.
.
.
end
end
试图做GamesAccounts :: GamesAccountsClient.new控制器给我
uninitialized constant GamesController::GamesAccounts
我甚至增加
config.autoload_paths += %W(#{config.root}/lib) in the applications.rb
我在做什么错误这里错了吗?
请不要自动加载'的lib /' – 2013-03-04 22:00:27