search for: deleteskill

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

2006 Jul 02
5
Question about setting field values for a belongs_to model
...crash either # The log file shows update statements to the skill table # but with the original values, not the new values # # @applicant.skills.find(skillid.to_i).description = newdescription # @applicant.skills.find(skillid.to_i).save end end if params[:deleteskill] params[:deleteskill].each do |id, todelete| if todelete == "1" @applicant.skills.find(id).destroy end end end if (@applicant.save) flash[:notice] = ''Applicant was successfully updated.'' redirect_to :action =>...