在Mac OS X上工作,尝试学习rails。当我输入:“rails generate Scaffold User name:string email:string”时,我收到以下错误:
/Users/dnf1991/rails_projects/demo_app/config/application.rb:7:in `<top (required)>': undefined method `groups' for Rails:Module (NoMethodError)
from /Users/dnf1991/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/gems/railties-3.0.9/lib/rails/commands.rb:15:in `require'
from /Users/dnf1991/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/gems/railties-3.0.9/lib/rails/commands.rb:15:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
有什么想法吗?
答案 0 :(得分:0)
按照相同的指南,我遇到了同样的问题。我删除了项目并重新生成,并且没有按照说明修改项目中的gemfile以使用1.3.3版本的sql(并没有注释掉其他默认包含)和错误消失了。