简体   繁体   English

rails服务器命令WINDOWS

[英]rails server command WINDOWS

I am completely new to ror and am following Michael Hartl's tutorial but I keep getting an error when I get to section 1.2.5. 我对ror完全陌生,并且正在关注Michael Hartl的教程,但是当我到达1.2.5节时,我总是遇到错误。 using the rails server command. 使用rails服务器命令。 When I use this command (whilst I am in my rail app directory 'first_app') I get the following error 当我使用此命令(虽然我在我的铁路应用程序目录“ first_app”中)时,出现以下错误

c:\Users\rails_projects\first_app>rails server
c:/rails_projects/first_app/config/application.rb:7:in `<top (required)>': undefined method `groups' for Rails:
Module (NoMethodError)
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.0.11/lib/rails/comma
nds.rb:28:in `require'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.0.11/lib/rails/comma
nds.rb:28:in `block in <top (required)>'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.0.11/lib/rails/comma
nds.rb:27:in `tap'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.0.11/lib/rails/comma
nds.rb:27:in `<top (required)>'
        from script/rails:6:in `require'
        from script/rails:6:in `<main>'

I can't figure out what went wrong, my bundle installed fine (section 1.2.4). 我不知道出了什么问题,我的捆绑包安装得很好(第1.2.4节)。

如果您的Gemfile未设置为使用rails 3.1或更高版本,请尝试更新到3.1。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM