Okay, that works in a separate project (the one where I follow Rick's suggestion). When I put in the inflector _after_ I created the scaffold, the routes weren't satisfied.
I had to script/destroy "Equipment", change the inflector, then script/ generate "Equipment" to get everything to sort itself out. Just changing the inflector (and restarting the server) appears to be insufficient. Thanks for your patience, Sijo. On Jul 21, 12:56 am, Sijo Kg <[email protected]> wrote: > Hi > You can do like following > > edit config/initializers/inflections.rb > > ActiveSupport::Inflector.inflections do |inflect| > inflect.irregular 'equipment', 'equipments' > end > > Now as I said before > ./script/generate scaffold Equipment > > That the solution. This is because rails takes plural of > equipment as equipment And what did above is to override that > To test it from console do 'equipment'.pluralize before and after > this and watch change > > Sijo > -- > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

