Salı, Kasım 29, 2005

Daha ne Olsun

Ruby yakında konuştuğunuzu anlayacak muhtemelen ;-)

This seemingly empty class definition is the recipe business object that Rails maps to the recipes 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, so Company maps to companies, Person maps to people, and so forth.

Hiç yorum yok: