2013-03-13 2 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::в 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 требуется ' /Library/Ruby/Gems/1.8/gems/netzke-core-0.8.2/lib/netzke-core.rb:10 из/Библиотека/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 требуется ' /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 require ' из /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: in `require ' от скрипта/рельсов: 6

Возможно, что-то не так с маршрутами? Что мне не хватает?

ответ

1

Похоже, вы используете Ruby 1.8.7. Netzke требует 1.9.x.

+0

Спасибо! Он решил мою проблему – sparta

Смежные вопросы