Forum: Ruby on Rails link_to_remote and an id that points to a text_field

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
7a4197685c29ebbec626212c080a6170?d=identicon&s=25 Wouter (Guest)
on 2006-01-14 19:49

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.


B389820ea2e2ee4f166930dea947a303?d=identicon&s=25 Didier Prophete (didier-prophete)
on 2006-01-14 20:50

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)

7a4197685c29ebbec626212c080a6170?d=identicon&s=25 Wouter (Guest)
on 2006-01-15 10:12
Great! This work perfectly.
This topic is locked and can not be replied to.