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


I am using methods to use empty rail projects: scaffold articles article: string body: text carrier_id: integer order: Integer migrate -> It works fine

Scaffolding title: String Order: Integer

This generates files, but when I reach, I get the following error: / P>

Categories # index / views / categories / index.html. ## where the line # 22 has been raised:

`new_categorie_path '#for the undefined local variable or method # # extracted source (around line # 22):

1 9: 20:
21: 22: & lt;% = link_to 'New classification', new_categorie_path%>

I have removed the creation of my entire rail, changed the class with another name, bar But it keeps failing. Why?

To add to the answer to the silly answer, which is correct, the rail conferences need to be English like naming.

If you put

  categorie  

in your scalp, then it will not be able to properly describe it in categories.

You can also try a different path using legacy names and can not make any plural, but it is a painful way.

I would recommend using the English nomenclature.


Comments