【发布时间】:2015-10-22 21:11:43
【问题描述】:
当我输入“rails new controller pages”时,它并没有为我创建控制器,而是在命令提示符下给了我这个错误:
C:\Users\Josh\Desktop\pinteresting>rails 生成控制器页面 C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activesupport-4.0.0/lib/active_support/值/time_zone.rb:282:警告:循环参数参考 - 现在 C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-4.0.0/lib/action_dispatch/rout ing/mapper。 rb:229:在“default_controller_and_action”中:缺少:控制器(Argum entError)
即使在执行“rails generate controller”之后,我仍然收到错误:
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-4.0.0/lib/action_dispatch/rout ing/mapper.rb:229:in `default_controller_and_action': 缺少 :controller (Argum entError)
【问题讨论】: