4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
search: tag:rails tag:irregular — newest first
  • Ruby on Rails: How do you explicitly define plural names and singular names in Rails? - Stack Overflow

    Framework counterpart.

    In config/initializers, you will find a file called inflections.rb. There are some instructions in here, but you will want something along the lines of:

    ActiveSupport::Inflector.inflections do |inflect|
    inflect.irregular 'bonus', 'bonuses'
    end

    January 5, 2016 - permalink - http://stackoverflow.com/questions/3517989/ruby-on-rails-how-do-you-explicitly-define-plural-names-and-singular-names-in-r
    irregular plural rails