Section 2.8. Moving Forward


2.8. 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. Then, we'll take a very quick look at two other relationships: inheritance and composition. By the end of the next chapter, we'll have a fully functioning, database- backed object model.



Ruby on Rails[c] Up and Running
Ruby on Rails[c] Up and Running
ISBN: B003D3OGCY
EAN: N/A
Year: 2006
Pages: 94

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net