Forum: Ruby on Rails Pluralisation issue?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E8741d4651a7c83840bae88213fe08bb?d=identicon&s=25 unknown (Guest)
on 2006-03-03 06:38
(Received via mailing list)
I'm having trouble with rails and a table named 'dives'. It seems to
work fine if I try it with another table name. I've generated the
scaffold with the script and have not made any modifications to it. When
I try to run the dives controller it starts looking for 'dife.rb' and
fives me 'uninitialized constant Dife'.

Is this a known issue?

I'm using rails 10. and ruby 1.8.4

Thanks,


    David
2a0f7bd2c54fbc44329d69555b96f1c5?d=identicon&s=25 Kev Jackson (Guest)
on 2006-03-03 06:47
(Received via mailing list)
gadicath@rubyforge.org wrote:

>Thanks,
>
>
IIRC the inflector rules for v/f are a little flaky - look up how to add
your own pluralisation rules to override this particular one

Kev
0091f92762685860109bbcb02edfdf27?d=identicon&s=25 Alain Ravet (Guest)
on 2006-03-03 09:06
(Received via mailing list)
Kev Jackson wrote:
     > .. look up how to add  your own pluralisation rules to override
this particular one

.., at the bottom of Environment.rb (look for 'Inflector')

Alain
E8741d4651a7c83840bae88213fe08bb?d=identicon&s=25 David (Guest)
on 2006-03-03 12:49
(Received via mailing list)
Alain Ravet <arav2132@biz.tiscali.be> writes:

> Kev Jackson wrote:
>     > .. look up how to add  your own pluralisation rules to override
> this particular one
>
> .., at the bottom of Environment.rb (look for 'Inflector')
>


Thanks,


   David
This topic is locked and can not be replied to.