I want to send other params i.e hidden field values in
`get_autocomplete_items(parameters)`
and I tried
= rec.autocomplete_field :name,
autocomplete_recruiter_name_job_applications_path,
:placeholder=>"Recruiter name",:id_element=>"#phone", :param_name =>
'search'
But ajax request is sending by same params not adding my other params
GET
http://localhost:3000/job_applications/autocomplete_recruiter_name?term=test
I want url something like that
GET
http://localhost:3000/job_applications/autocomplete_recruiter_name?term=test&search=series
so that I can access hidden field value in
def get_autocomplete_items(parameters)
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3e2690a9e8c4d40fc3133e0a32ee6bba%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment