Walter, thanks for helping,
"Try doing it without any special effort in the controller."
Not sure what you mean I should do, I understand what you're saying, but
I'm not sure what the 'normal' / simple way to do this is.
This is what I've got in the controller after trying to simplify like
you said:
def multi_params_edit
@events = Event.find( params[:is_ten_event_ids] )
logger.debug("MULTI PARAMS EDIT : " + @events.length.to_s)
@events.each do |e|
logger.debug("trying to make event is_ten_event = true")
e.update_attribute(:is_ten_event, true)
end
redirect_to (:action =>:index)
end
but this does what I was trying to avoid, and when I uncheck the box and
submit, the attribute is not changed. the check returns! Could you
possibly explain how I should do this in a little more detail please.
Thanks
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.