Skip to content

"Superhero" does not pluralize correctly #5859

Closed
chrisbdaemon opened this Issue Apr 16, 2012 · 1 comment

2 participants

@chrisbdaemon

When I try to generate scaffolding for a "Superhero" resource, rails does not correctly pluralize it for the controller and other files

Command:

rails generate scaffold Superhero

Output:

...
create    app/controllers/superheros_controller.rb
...

This is using Rails 3.2.3 with ruby 1.9.3p125

@drogus
Ruby on Rails member
drogus commented Apr 16, 2012

Please add custom inflections to config/initializers/inflections.rb. Inflections in rails are frozne, meaning that we will not accept any patches to add new irregular versions.

@drogus drogus closed this Apr 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.