Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Pluralize Method in rails #10641

deependersingla opened this Issue May 16, 2013 · 5 comments


None yet
2 participants

Pluralize Method in rails is giving false output for "attorney general" it is giving "attorney generals" where as it has to be "attorneys general" , i know ruby well can anybody suggest where i can see existing rule of plural and add new one.


dmathieu commented May 16, 2013

Rails cannot properly inflect the entire dictionary (in all languages ...). Therefore, you can add your own inflections in your application.
See http://api.rubyonrails.org/classes/ActiveSupport/Inflector.html#method-i-inflections

All generated applications get a config/initializers/inflections.rb file, where you can setup your own custom inflections.

Thanks for your prompt reply , if i have to add rule to custom inflections so other release can have it .How can i do that.


dmathieu commented May 16, 2013

Inflections in rails are currently frozen, because they break other peoples applications too easily.
So no, sorry, we don't merge these kind of changes.

Okey , thanks i will work on some other issue can u suggest some bug for starter to work.


dmathieu commented May 16, 2013

There are 501 issues currently open in this repository. Just pick one :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment