Thank you very much. It works =) I used the following inflections.rb (for pt_BR): https://gist.github.com/924574
On Thu, Aug 16, 2012 at 4:50 PM, Colin Law <[email protected]> wrote: > On 14 August 2012 06:08, Carlos Augusto Borges <[email protected]> > wrote: > > In Portuguese it is possible to have the word "serie" which is singular > for > > "series". So I tried to generate scaffold for it with the following > command: > > $ rails g scaffold Serie name type > > > > Although when I get http://localhost:3000/series/new the following error > > happens: > > No route matches {:action=>"show", :controller=>"series", :format=>nil} > > > > I did some research and I guess it is related to the fact that there is > no > > "serie" word in english, only "series" which is both plural and singular. > > But couldn't find any solution... > > > > For now I noticed that if I generate the scaffold with the following > command > > it works just fine. > > $ rails g scaffold Series name type > > > > But I was wondering if there is a better solution. Maybe something that > > internacionalize the routes for resources or anything? > > You can override the default rules for inflection (that is the > singular/plural rules). If you google for rails custom inflection you > will find links on how to do it. > > Colin > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

