生成模型电子邮件:字符串名称:字符串,我得到这个错误进行耙分贝:迁移耙分贝:迁移错误使用轨道后生成模型
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)
为什么你忽略错误信息? _Missing:控制器上的路线定义的关键,请检查您的路线._ –