I lofe rails.

So I had a table called loves. The problem with naming a table loves is that rails will do this in the scaffolding:

“loves”.singularize

Guess what that is? Yes, the singular for loves is lofe. Don’t ask me what a lofe is, but I don’t lofe it. It turned out to be not such a big deal, because you can usually specify the :singular_name if you have to.
Btw, I am not creating a dating site. It’s more of a del.icio.us sort of love.

One Response to “I lofe rails.

  • 1
    darren
    December 16th, 2006 19:18

    environments.rb also give you an opportunity to define ‘exceptions’ to the built in pluralization rules. See the line:

    # inflect.irregular ‘person’, ‘people’

Leave a Reply