Pages

Tuesday, January 11, 2011

Association on rails


Briefly, Association Proxies are functions defined on an association. For example, in a library example, a Patron might have many books. This would look like

class Patron < ActiveRecord::Base
  has_many :books
end
 

No comments:

Post a Comment