1 2 3 4 5 6 7 8
class Post < ActiveRecord::Base belongs_to :author has_many :comments, :order => "body" has_and_belongs_to_many :categories end class SpecialPost < Post end