Rails : Scaffold works for the first, but not for the second table

Posted by Sylario on Stack Overflow See other posts from Stack Overflow or by Sylario
Published on 2010-05-17T11:28:08Z Indexed on 2010/05/17 11:30 UTC
Read the original article Hit count: 247

Filed under:
|

I am using aptana radrails empty rail project : scaffold Article titre:string body:text categorie_id:integer ordre:integer Migrate -> it works fine

scaffold Categorie titre:string ordre:integer

It generate the files but when i access http://127.0.0.1:3000/categories i have the following error :

NameError in Categories#index Showing app/views/categories/index.html.erb where line #22 raised:

undefined local variable or method `new_categorie_path' for #

Extracted source (around line #22):

19: 20:
21: 22: <%= link_to 'New categorie', new_categorie_path %>

i deleted recreated my whole rails project a few times, changed categorie with another name but it keep failling. Why ?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about scaffold