Scott Pn wrote:
Steve Rawlinson wrote:
check_box object, method
I tried that in a form, and it didn't work, is there any way to force it
to do execute the method.
Chris Taggart wrote:
Do you mean updates the record via Ajax when the check box is clicked?
Also, I like the idea of automatically updating with ajax, is there a
way to do this without UJS?
Yes, you can use the observer_field helper method (http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M000535)
Hope this helps