Before you do anything extreme, try this (example from previous post). script/generate scaffold Equipment name:string kind:string
Then see what happens when you go: http://localhost:3000/equipment/new Equipment is a word that behaves just as you'ld like with singular (equipment) == plural(equipment). You're going to need more than just inflections to make this puppy work. On Jul 20, 7:19 am, Franco Catena <[email protected]> wrote: > You can rewrite the inflections using > ActiveSupport::Inflector.inflections (http://api.rubyonrails.org/ > classes/ActiveSupport/Inflector/Inflections.html) and do something > like mapping the plural of all words to the same word. > > Regards. > > Franco Catena. > > On Jul 18, 4:24 am, harun <[email protected]> wrote: > > > Hi, > > > First, I am new at Ruby on Rails. When using scaffolding feature, > > rails pluralize some automatically generated files' names, like > > controller names, view names and helper names. What I want is to > > disable this pluralization. For example, I want the contoller name of > > model 'Post' to be 'post_controller.rb' instead of > > 'posts_controller.rb'. > > > Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

