I’m trying to have a checkbox, that when clickes sends an update to the
server and in turn modify the UI with feedback on the success of the
The main difficulty I’m encountering is that I can’t pass the checkbox
value if I use the standard PrototypeHelpers.
I’m using remote_function to build the function call, but it doesn’t
allow me to pass the “this.checked” from the combo to the server. As far
“/item/5/”+this.checked, but since the url is build only of options I
can’t generate this.
- How can this be done?
- Why isn’t there checkbox_remote just like there is link_to_remote. I
would expect this also for all controls (radio buttons, edit boxes,
etc.) so maybe it is hiding there somewhere?
- Any workaround using other methods or assistance how write my own
checkbox_remote without duplicating too much existing rails code? (as I
need to modify also the url_for to get this solved). I’d prefer to to
methods for everything.