search for: multi_params_edit

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

2011 Aug 14
5
Puzzled with form on multiple table rows
...ase and the table view reflects the changes. If I then submit again, with the same values still checked the values I set the last time get set to false. The view code looks like this : check_box_tag "is_ten_event_ids[]", event.id, event.is_ten_event The controller is like this : def multi_params_edit @events = Event.find( params[:is_ten_event_ids] ) logger.debug("MULTI PARAMS EDIT : " + @events.length.to_s) unless @events.empty? Event.transaction do Event.update_all(:is_ten_event => false) @events.each do |e| logger.debug("tryin...