Moving Forward
In the next chapter, weâll look at managing relationships between Active Record classes. Weâll see most types of Active Record relationships in action, including:
belongs_to
has_one
has_many
has_and_belongs_to_many
acts_as_list
acts_as_tree
Weâll build each of these into our evolving Photo Share object
model, including the base relationships has_one
, has_many
, and has_and_belongs_to_many
, as well as the plug-ins acts_as_list
and acts_as_tree
. By the end of the next chapter,
weâll have a fully functioning, database-backed object model.
Get Rails: Up and Running, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.