Displaying 1 result from an estimated 1 matches for "creators_issues".
2005 Mar 01
0
has_and_belongs_to_many problem
..._belongs_to_many :letterers, :class_name=>''Creator'',
:association_foreign_key=>''creator_id'', :conditions=>''creator_job_id=5''
class Creator < ActiveRecord::Base
has_and_belongs_to_many :issues
My join table looks like this:
creators_issues
issue_id INT
creator_id INT
creator_job_id INT
If I use this code, it still deletes all instances of that creator:
creator = @issue.writers.find(1)
@issue.writers.delete(creator)
Do I need to specify the Delete SQL statement for the habtm
association? I haven''t seen sample code fo...