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? 

Thanks in advance.

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/rG4bH0i0DaAJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to