首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Netzke控制器生成错误

Netzke控制器生成错误
EN

Stack Overflow用户
提问于 2013-03-13 12:41:07
回答 1查看 125关注 0票数 0

我是Ruby和Rails的新手,并且在生成简单的控制器http://writelesscode.com/blog/2012/10/20/extjs-rails-crud-application-in-7-minutes/时询问错误

代码语言:javascript
复制
$ rails g controller welcome index

来自/ /Library/Ruby/Gems/1.8/gems/netzke-core-0.8.2/lib/netzke/core/railz.rb:2: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: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:inrequire’来自/ Ruby/Gems/1.8/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in /Ruby/Gems/1的/Library/Ruby/Gems/1.8/gems/bundler-1.2.3/lib/bundler.rb:128: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 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:inrequire’from 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:inrequire.8/gems/railties-3.2.12/lib/rails/commands.rb:24 from script/rails:6:in‘.8/gems/railties-3.2.12/lib/rails/commands.rb:24’from script/rails:6

也许路由出了什么问题?我错过了什么?

EN

回答 1

Stack Overflow用户

发布于 2013-03-13 21:27:05

看起来您使用的是Ruby 1.8.7。Netzke需要1.9.x。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15377220

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档