I have searched high and low with no success. Does anyone know of a way
to pass the values of more than one form field through the :with
parameter of observe_field?
Basically I have two fields on the form with number values. When the
user changes the value of one I would like to send the values of both
fields to the controller for calculations and return the result to the
user on the form. If I only pass one of the fields (i.e.
“‘volume=’+value”) I can get a respnse back to the form, so I am pretty
sure all my code is good…
I also looked into observe_form but couldn’t get the Form.serialize
thing to work. I only want to pass the two values, not the entire form
which has a considerable amount of inputs on it anyway.
I did find a hint on the Rails wiki:
Though despite my efforts to copy the syntax given in the example, I
couldn’t get it to work either. Any ideas?