This seemingly empty class definition is the recipe business object that Rails maps to therecipes
table 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, soCompany
maps tocompanies
,Person
maps topeople
, and so forth.
Salı, Kasım 29, 2005
Daha ne Olsun
Ruby yakında konuştuğunuzu anlayacak muhtemelen ;-)
Kaydol:
Kayıt Yorumları (Atom)
Hiç yorum yok:
Yorum Gönder