Displaying 1 result from an estimated 1 matches for "wh_config_zip".
2006 Jan 18
5
NOOB Ajax question: handling form input
...m was generated by the generate scaffold script. The form is
filled with default data taken from the current record. I coded the
following changes to a field in the _form.rhtml file:
<%= text_field ''wh_config'', ''zip'' %></p>
<%= observe_field(:wh_config_zip,
:frequency => 0.5,
:update => :wh_config_zip,
:url => {:action => :reszip}) %>
In the controller, I put the following method in a public section,
def reszip
@fixed_zip = request.raw_post[0..4]...