Softlogger
Categories

Extend Your ActiveRecord Association Methods


Much of the beauty of ActiveRecord associations is in the collection methods that are provided for you when you define has_many relationships. For instance, when we say: class Organization < ActiveRecord::Base has_many :people end We now have an organization.people method that returns the collection of associated

Filed under: Ruby on Rails  |    On : 2006 Dec 03  |  From: Ryans Scraps   | related Posts

Similar Posts



Most Popular

Archives

  • 2008
  • 2007
  • 2006
  • 2005
  • 2004
  • 2003