This seemingly empty class definition is the recipe business object that Rails maps to the
recipestable in the database. You will see more concretely what I mean by this in a moment. Right now, I want to point out that this little bit of programming magic happened because we used a Rails naming convention: a singular model class name (
Recipe) maps to a plural database table (
recipes). Rails is smart about English pluralization rules, so
people, and so forth.
Salı, Kasım 29, 2005
Ruby yakında konuştuğunuzu anlayacak muhtemelen ;-)
zaman: 10:08 ÖÖ