If a Model class has a "has_many" relationship available, it can specify a "has_one" relationship pointing to one record for future convenient reference.
:conditions and other SQL options can be used to narrow the search.
Blog has many Post
Later, you can reference the first record easily by:
Yes! this is the one I love most, give her some special treat.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment