I'm creating a model named Stadium
with rails g model Stadium
but rails is converting table name to stadia
.
I've manually changed table name to stadium
in the migration, and added set_table_name "stadium"
in my model class. But all my routes are looking for stadia_path
.
I've tried rails g model Stadium --force-plural
with no success.
I think I should use an inflection for this, but I don't know how to create this inflection. Stadium is singular, I still need the plural stadiums for this model.