Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.
moomerman edited this page Dec 24, 2012 · 5 revisions

Welcome

class Person < ActiveRecord::Base
  has_many :comments
end

class Comment < ActiveRecord::Base
  belongs_to :author, :class_name => "Person"
end

Clone this wiki locally