This is a follow-up to this.
What is the proper thing to do when you want Rails and all its helpers to work correctly with words like CarsForRent
given that you follow conventions for database and file namings?
inflect.irregular 'car for rent', 'cars for rent'
doesn't seem to be enough.
For example, when I generate a model with name CarForRent
Rails creates a file named car_for_rents
. Is it not smart enough to recognize that CarForRent
is like car for rent
?
Do I have to explicitly define inflect.irregular 'car_for_rent', 'cars_for_rent'
or is there a better way?