Displaying 1 result from an estimated 1 matches for "fixed_zip".
2006 Jan 18
5
NOOB Ajax question: handling form input
.../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]
render(:layout => false)
end
An then I created an rhtml file in the view section for the controller
called reszip.html which contained the following:
<%= @fixed_zip %>
I put a breakpoint at the start of the reszip method, and I am getti...