Hi! I''m having trouble with the following thing: I have a view with a text_field. What I want is to call a remote method with the value of the text_field as the :id I supply to link_to_remote. How do I do this? It''s about an empty form, so the text_field doesn''t have a value when the page is loaded. Grtz, Wouter -- Posted via http://www.ruby-forum.com/.
Didier Prophete
2006-Jan-14 19:51 UTC
[Rails] Re: link_to_remote and an id that points to a text_field
Wouter, Using form_remote_tag will do the trick. This will send your text_field value along (or any other field in your form for that matter) http://api.rubyonrails.com/classes/ActionView/Helpers/JavaScriptHelper.html#M000435 -Didier -- Posted via http://www.ruby-forum.com/.