This seemingly empty class definition is the recipe business object that Rails maps to therecipestable 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, soCompanymaps tocompanies,Personmaps 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