3
我尝试我的第一个Rails应用程序ROR:语法错误,意想不到的tSTRING_BEG,期待keyword_do或 '{' 或 '('(的SyntaxError)
但得到了以下错误:
/Users/WWW/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `load': /Users/WWW/railsbridge/first-app/config/routes.rb:3: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' (SyntaxError)
+ get 'welcome',to: 'topics#welcome'
^
/Users/WWW/railsbridge/first-app/config/routes.rb:3: syntax error, unexpected ',', expecting keyword_end
+ get 'welcome',to: 'topics#welcome'
这里是代码:
resources :topics
+ get 'welcome',to: 'topics#welcome'