2013-03-13 58 views
0

我是新來的Ruby和Rails,並要求有關錯誤而產生簡單的控制器 http://writelesscode.com/blog/2012/10/20/extjs-rails-crud-application-in-7-minutes/Netzke控制器產生錯誤

$ rails g controller welcome index 

/Library/Ruby/Gems/1.8/gems/netzke-core-0.8.2 /lib/netzke/core/railz.rb:2:in require': /Library/Ruby/Gems/1.8/gems/netzke-core-0.8.2/lib/netzke/core/railz/routes.rb:18: syntax error, unexpected ':', expecting kEND (SyntaxError) ...refix}/:action(.:format)", to: controller.to_s, as: 'netzke' ^ /Library/Ruby/Gems/1.8/gems/netzke-core-0.8.2/lib/netzke/core/railz/routes.rb:18: syntax error, unexpected ':', expecting '=' ...at)", to: controller.to_s, as: 'netzke' ^ from /Library/Ruby/Gems/1.8/gems/netzke-core-0.8.2/lib/netzke/core/railz.rb:2 from /Library/Ruby/Gems/1.8/gems/netzke-core-0.8.2/lib/netzke-core.rb:10:in需要' from /Library/Ruby/Gems/1.8/gems/netzke-core-0.8.2/lib/netzke-core.rb:10 from/Library/Ruby/Gems/1.8/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:在require' from /Library/Ruby/Gems/1.8/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in中需要' from /Library/Ruby/Gems/1.8/gems/bundler-1.2.3/lib /bundler/runtime.rb:66:in each' from /Library/Ruby/Gems/1.8/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in要求' from /Library/Ruby/Gems/1.8/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in each' from /Library/Ruby/Gems/1.8/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in需要來自/Library/Ruby/Gems/1.8/gems/bundler-1.2的' 。 3/lib/bundler.rb:128:在require' from /Users/sparta/Work/rails/erp/config/application.rb:7 from /Library/Ruby/Gems/1.8/gems/railties-3.2.12/lib/rails/commands.rb:24:in需要從/Library/Ruby/Gems/1.8/gems/railties-3.2.12/lib/rails/commands.rb:24 從腳本/導軌獲得' :6:在'require' from script/rails:6

路由可能有問題嗎?我錯過了什麼?

回答

1

好像你在使用Ruby 1.8.7。 Netzke需要1.9.x.

+0

謝謝!它解決了我的問題 – sparta 2013-03-13 15:47:55