I have a model named ActiveDns. When I run
rails g scaffold_controller ActiveDns
I get the message
Plural version of the model detected, using singularized version. Override with --force-plural.
Now, the controller and views are generated pretending that the singular is ActiveDn and the plural is ActiveDns, and I get silly stuff like link_to new_dn_path. The --force-plural argument doesn't appear to fix this:
rails g scaffold_controller ActiveDns --force-plural
still results in controllers using variables named @active_dn and views using new_dn_path, with rails 3.2.3. I am removing files between tries using rails d scaffold_controller ActiveDns.
What's the right way to do this?