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.