I am generating a list from a collection using partials. In each row of the list I am using a checkbox which the user can use to set the "on-off" state of that item. The intent is when the user clicks the checkbox an AJAX call is made to set that value in the Database. I tried to use the "observe_field" but all I got was a JavaScript error:
Value 0 (result of expression this.callback) is not object.
http://localhost:3000/javascripts/prototype.js?1203866909 (line 2140)
Any thoughts as to what I am doing wrong? Do I need to put the checkboxes within a form?
Thanks,
Grant
Start Free Trial