[英]Ruby on Rails generate controller giving an error
I'm currently trying to generate a controller in rails with the command:我目前正在尝试使用以下命令在 rails 中生成 controller:
rails generate controller Songs index upload delete
But I get the error:但我得到了错误:
/Users/lucasdobbins/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.5/lib/rails/commands.rb:15:in `require': /Users/lucasdobbins/rails_projects/mp3app/config/application.rb:20: syntax error, unexpected tSYMBEG, expecting ')' (SyntaxError)
:secret_access_key => 'fmbDA3...
^
/Users/lucasdobbins/rails_projects/mp3app/config/application.rb:21: syntax error, unexpected ')', expecting keyword_end
from /Users/lucasdobbins/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.5/lib/rails/commands.rb:15:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Ive also tried just using:我也尝试过使用:
rails generate
But get the same result, anyone have any idea has previously been working.但是得到同样的结果,任何人都有任何想法以前一直在工作。
Check line 20 or 21 of your config/application.rb for an unclosed parentheses.检查 config/application.rb 的第 20 或 21 行是否有未闭合的括号。 That's what the error message says.
这就是错误消息所说的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.