passing text_field values in ajx on rails
Posted
by user163352
on Stack Overflow
See other posts from Stack Overflow
or by user163352
Published on 2010-04-27T11:53:37Z
Indexed on
2010/04/27
12:13 UTC
Read the original article
Hit count: 228
AJAX
|ruby-on-rails
I'm using
<%= text_field 'person', 'one',:id => 'test', :onchange=>remote_function(:url=>{:action=>"update"}, :update=>"test") %>
<div id="test"></div>
Now I just want to send the value of text_field with :action
i.e :url=>{:action=>"update(value_of_text_field_entered"}
Don't want to use params[:person][:one].
Any suggestions?or how can I use <%= observe_field %> to send the value with action?
© Stack Overflow or respective owner