I would like to pass the name as a parameter to my action. The name
should be the value of the input field with id ‘activity_lookup’.
I did not find a solution on how to do this :s
include javascript ? javascipt_tag ? (tried this, but did not do the job
… )
As you will guess : I am using this bit of code for an auto complete
field (example from the rails recipes book)
Is there a nice way to do this ?
Am I looking in the wrong direction and is it much easier ?
Note: Check how to pass arguments to “link_to” in http://api.rubyonrails.org/
In your case it’s take name as the html_options so it will rendered as
an attribute of tag like this