search for: written_in

Displaying 1 result from an estimated 1 matches for "written_in".

Did you mean: written_id
2006 Apr 05
0
Has Many :through associations
...class Authorship < ActiveRecord::Base belongs_to :author belongs_to :book end Here''s the code sample he provides to exercise the new functionality: david, awrd = Author.find(1), Book.find(1) david.authorships.create( :book => awrd, :contribution => "partial", :written_in => "Denmark" ) david.authorships.first.written_in # => "Denmark" david.books.first # => awrd Ok, fine and good. So how do I remove the created authorship? The only way I have found is this: Authorship.find(:first, :conditions => ["author_id = ? and book_...