我目前正在尝试用命令在rails中生成一个控制器:
rails generate controller Songs index upload delete
但是我得到错误:
/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>'
我也试过只用:
rails generate
但是得到相同的结果,任何人都有任何想法之前一直在工作。
检查config/application的第20行或第21行。Rb表示未闭括号。