29Mar/060
Polymorphic relationships in Rails
Rails 1.1: RJS, Active Record++, respond_to, integration tests, and 500 other things!
RUBY:
-
class Author <ActiveRecord::Base
-
has_many :authorships
-
has_many :books, :through => :authorships
-
end
That is beautiful.


