The :update option isn't going to do much since it replaces the inner
html for the tag and an input tag has no inner html. Executing some
javascript along the lines of $('sale_unit_price').value = ... should
do the trick
Ok .. so how exactly should I code this in my controller method? Also
you are suggesting I should not have the :update option at all in my
observe_form call?
That won't work unless you've removed the :update option from your
observe form (and probably won't work then since I seem to remember
that prototype checks the content type of the response). An rjs (or
js.erb) template or a render :update block would take care of that.