Will T. wrote:> Hello Ruby community,
>
> Does anyone know where I can find more information about name convention
> that RoR uses (class name in relation to table name)?
>
> Thanks in advance,
>
> Will T.
Specifically talking about class name in relation to table name, the
convention is that the table name is plural and the class name is
singular. The Rails inflector module is able to figure out
singluar/plural in all but the most obscure of cases, and even then you
can add custom inflections to the module rather easily.
I don''t know that it''s explained any more than that anywhere.
You could
always dig into the Rails code to further understand what''s going on.
c.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---