Wednesday, April 21, 2010

[Rails] Re: Parameters passing of select_tag

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...@gmail.com> wrote:
> how about the rails api doc ?
>
> 2010/4/22 Prashant <prashant.thak...@gmail.com>:
>
>
>
>
>
> > 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@googlegroups.com.
> > 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@googlegroups.com.
> 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@googlegroups.com.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate