【发布时间】:2017-04-05 15:21:29
【问题描述】:
在使用 rails 生成模型 email:string name:string 后我收到了 rake db:migrate 的错误
rake db:migrate
rake aborted!
ArgumentError: Missing :controller key on routes definition, please check your routes.
/home/abhishek/RubymineProjects/untitled/config/routes.rb:2:in `block in <top (required)>'
/home/abhishek/RubymineProjects/untitled/config/routes.rb:1:in `<top (required)>'
/home/abhishek/RubymineProjects/untitled/config/environment.rb:5:in `<top (required)>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
【问题讨论】:
-
为什么忽略错误信息? 路线定义中缺少 :controller 键,请检查您的路线。
标签: ruby-on-rails