Rails Scaffold problem # undefined method `edit_pais_path'
- by Bruno Cordeiro
I created a scaffold of named pais (This is a word in Portuguese of Brazil and is the same that country), i created using the follow command:
ruby script\generate scaffold pais name:string abreviattion:string
First I changed the inflections to my local idiom, like that:
inflect.plural /^([a-zA-z]*)s$/i, '\1ses' #The plural of Pais is Paises
And when I tryied to open the page on http://localhost:3000/paises I'm receiving the follow error:
undefined method `edit_pais_path' for #<ActionView::Base:0x387fdf4>
Thanks in advance.