On Sun, Jul 28, 2013 at 11:38 AM, yash shah <yashshah1800@gmail.com> wrote:
> I have created the drop down list for state and city. Now when the user
> selects the state say florida and city say miami, I want to display these
> names on the new page when the user clicks the search link. Using link_to,
> I am not able to pass these names to the new page.
Correct, or at least not without JavaScript.
The easiest way is to make 'Search' a submit button inside the form.
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
--
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/CACmC4yC-RuUGKgiA5RtLz9Wi8xG_hRMo%2B3bELf-pcqLkUnC%3Dqw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment