我正在使用 aptana radrails 空轨项目:脚手架文章 titre:string body:text categorie_id:integer ordre:integer Migrate -> 它工作正常
脚手架类别滴度:字符串顺序:整数
它生成文件,但是当我访问http://127.0.0.1:3000/categories时出现以下错误:
Categories#index 中的 NameError 显示 app/views/categories/index.html.erb 其中第 22 行引发:
未定义的局部变量或方法 `new_categorie_path' for #
提取的源代码(在第 22 行附近):
19:20:
21:22: <%= link_to '新类别', new_categorie_path %>
我删除了几次重新创建了我的整个 Rails 项目,用另一个名称更改了类别,但它一直失败。为什么 ?