I wish to have an option in my application where user can select a value from Combo Box shown in a page and on clicking of button this is passed as parameters to another controller. There will be 4 combo boxes on the selection page. I am using select_tag to populate data from database Something like Town <%= select_tag(:town, "<option>-Select a Town</option>" + options_from_collection_for_select(@towns, :NAME, :NAME)) %> Can you please suggest what is the method to do it ? I am not able to find some clear guidelines for the same, I am new to web development so maybe I am searching at wrong place. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
how about the rails api doc ? 2010/4/22 Prashant <prashant.thakurs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> I wish to have an option in my application where user can select a > value from Combo Box shown in a page and on clicking of button this is > passed as parameters to another controller. There will be 4 combo > boxes on the selection page. I am using select_tag to populate data > from database > > Something like > > Town <%= select_tag(:town, "<option>-Select a Town</option>" + > options_from_collection_for_select(@towns, :NAME, :NAME)) %> > > Can you please suggest what is the method to do it ? > I am not able to find some clear guidelines for the same, I am new to > web development so maybe I am searching at wrong place. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks, I had to place everything in form_tag and everything else worked fine. Now I have all values in Parameters list On Apr 22, 10:32 am, soldier <8863...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> how about the rails api doc ? > > 2010/4/22 Prashant <prashant.thak...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > > > > > > I wish to have an option in my application where user can select a > > value from Combo Box shown in a page and on clicking of button this is > > passed as parameters to another controller. There will be 4 combo > > boxes on the selection page. I am using select_tag to populate data > > from database > > > Something like > > > Town <%= select_tag(:town, "<option>-Select a Town</option>" + > > options_from_collection_for_select(@towns, :NAME, :NAME)) %> > > > Can you please suggest what is the method to do it ? > > I am not able to find some clear guidelines for the same, I am new to > > web development so maybe I am searching at wrong place. > > > -- > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.