search for: to_update

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

Did you mean: do_update
2006 Mar 09
3
problem with find()
...cture returned from the form is: {"illness"=>{"1"=>{"illness_date"=>"", "qualifier"=>""}}} The controller code works (i.e., updates the first record) when I do the following: params[:illness].each do @rec = 1 @to_update = Illness.find(@rec) @to_update.qualifier = "test" @to_update.illness_date = "1990" @to_update.save end But when I do this: params[:illness].each do @rec = params[:illness] @to_update = Illness.find(@rec) @to_update.qualifier = "...