Displaying 1 result from an estimated 1 matches for "update_il".
Did you mean:
update_isl
2006 Mar 09
3
Need help PLEASE!!! - updating collection from form
...ill
--------------------- controller code ------------------------
def edit_illnesses
# send a collection of records to the view
@emrec = find_emrec
@illnesses = Illness.find(:all,
:conditions => ["emrec_id = ?", @emrec.id])
end
def update_illness
# update the records sent in ''edit_illnesses'' based on what''s returned in ''params''
@emrec = find_emrec
@illnesses = Illness.find(:all,
:conditions => ["emrec_id = ?", @emrec.id])
fo...