我一步一步地遵循这个教程。我的红宝石版本是1.9.3,rails版本是3.2.16。
但还是不能工作。给我一个错误:
NameError
undefined local variable or method `netzke' for #<ActionDispatch::Routing::Mapper:0x007ffcb24eb590>
Rails.root: /Users/USER/MyGit/a看起来是根错误,所以我更改了根文件。
以前:
netzke
root to: "welcome#index"后:
root to: "welcome#index"但是当再次运行时,它会给我带来另一个错误:
NoMethodError in Welcome#index
Showing /Users/tangmonk/MyGit/a/app/views/welcome/index.html.erb where line #1 raised:
undefined method `netzke' for #<#<Class:0x007ffcb29cad40>:0x007ffcb29c8248>
Extracted source (around line #1):
1: <%= netzke :tasks, height: 400 %>
Rails.root: /Users/tangmonk/MyGit/a我将rails版本更改为4.0,但仍然存在问题。
所以我希望有人能帮我。
发布于 2014-01-04 13:38:40
看起来一切都是正确的,但是在向Gemfile添加了新的gems之后,您忘记了运行bundle install。
https://stackoverflow.com/questions/20921049
复制相似问题