0

当我运行 RailsTorrent(https://github.com/raskhadafi/railstorrent)时,出现以下错误:

[root@sookcha railstorrent]# rails s
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/railtie/configuration.rb:85:in `method_missing': undefined method `generators' for #<Rails::Railtie::Configuration:0x000000024eef38> (NoMethodError)
from /usr/local/lib/ruby/gems/1.9.1/gems/inherited_resources-1.1.2/lib/inherited_resources.rb:24:in `<class:Railtie>'
from /usr/local/lib/ruby/gems/1.9.1/gems/inherited_resources-1.1.2/lib/inherited_resources.rb:22:in `<module:InheritedResources>'
from /usr/local/lib/ruby/gems/1.9.1/gems/inherited_resources-1.1.2/lib/inherited_resources.rb:3:in `<top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runtime.rb:68:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runtime.rb:66:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runtime.rb:66:in `block in require'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runtime.rb:55:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runtime.rb:55:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler.rb:119:in `require'
from /root/railstorrent/config/application.rb:7:in `<top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:53:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:53:in `block in <top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in `tap'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

我在我的 CentOS 6.2 系统上运行 Ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux],Rails 3.2.3。

我已经搜索了错误代码,但我找不到它。

我该如何解决?

4

1 回答 1

1

您的inherited_resources(1.1.2) 版本与 Rails 3.2.3 不兼容,请尝试更新inherited_resources到 1.3.1。Rails 3.1 被弃用config.generatorsconfig.app_generators因此在 Rails 3.2 中被抛弃

于 2012-05-31T15:47:40.547 回答