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 example. I am trying to scaffold this model, but Rails insists on making FlightRules
singular (FlightRule
), while I need it to remain plural. Is there any way of having Rails keep the model name plural?
You have to edit your inflections.rb file under config/initializers/inflections.rb
ActiveSupport::Inflector.inflections do |inflect| inflect.uncountable %w(flight_rules) end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With