I have a domain model that represents flight rules. Flight rules are a collection of regulations under which a flight is performed. Visual Flight Rules, or VFR is one such e
Try this
rails generate scaffold FlightRules (...) --force-plural
You can get the help on the generator with:
rails g scaffold -h
ActiveSupport::Inflector::Inflections is your friend.
There is a file config/initializers/inflections.rb
, which you can edit. The file contains commented examples, so it should be easy to add your own rules.
You have to edit your inflections.rb file under config/initializers/inflections.rb
ActiveSupport::Inflector.inflections do |inflect|
inflect.uncountable %w(flight_rules)
end