Rails 3 inflection

I am still confused by rails 3 new rules, and knowing so little about
it,I want some help on a particular problem: inflection when creating
models:
what can I do in order to get rails generate model using words ending
in ‘a’, so that the plural generated add an ‘s’

If I edit config/initializers/inflections.rb and add the
appropiate rule
inflect.plural /(.*)a$/, ‘\1as’
I solve the problem.

What collateral effects is to expect ?

GP

On Aug 6, 12:16pm, gatopardo [email protected] wrote:

What collateral effects is to expect ?

As far as I know, all this does is change inflections. This can have
consequences if it ends up changing the pluralization of existing,
models, resources etc. that were in your app. For example rails knows
that has_many :items means that the associated model is Item. if you
changed the pluralization rules such that when rails singularized
items it got something other than item then rails would guess the
wrong class name
That said, for me pluralizing words ending in ‘a’ does seem to just
add a s.

Fred

Fred

On 6 August 2011 13:48, Frederick C. [email protected]
wrote:

appropiate rule
changed the pluralization rules such that when rails singularized
items it got something other than item then rails would guess the
wrong class name
That said, for me pluralizing words ending in ‘a’ does seem to just
add a s.

Many words ending in “a” are already plural. For example the plural
of datum is data.
@OP: out of interest what words are you pluralising?

Colin