Women in Technology

Hear us Roar

  Rolling with Ruby on Rails
Subject:   Great article, but one question
Date:   2005-10-27 03:49:20
From:   curth
Response to: Great article, but one question

In many cases (although not all) Rails is smart enough to accept singular or plural as you just discovered with "has_many". That way you can choose the form that reads the best.

In this case I would say "has_many: recipes" because it reads more naturally.

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Great article, but one question
    2005-10-27 16:41:20  terry.sasaki [View]

    Thanks curth,

    Well, so we must use a class name here, but it could be singular or plural.
    Wow, I will use more intuitive 'recipes' of course from now on.