Displaying 1 result from an estimated 1 matches for "appropriate_".
Did you mean:
appropriate
2007 Nov 22
1
has_many :through questions
...ections content by deleting
and adding objects as appropriate.
That''s because I want to eliminate redundant join records, i.e., there
should be only one record in the attendees table that contains the
combination of event_id=1 and person_id=1. I took "deleting and
adding objects _as appropriate_" to mean that. Is this true?
Secondly, trying this code in class PeopleController:
@person.events = Event.find(@params[:event_ids]) if
params[:event_ids]
resulted in the following error:
undefined method `events='' for #<Person:0x6836228>
So, did I get something wron...