Naming convention

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.

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs