On 20 Aug 2008, at 16:01, Ga Ga wrote:
>
> i am using following code for drop down.
>
> <%=
select_tag(''abc'',"<option></option>" +
> options_from_collection_for_select(@priorarr,:Id,:Priority,:selected
> =>
> params[:cs_priority])) %>
>
>
> it is giving me one drop down with the values populated from the
> "@priorarr" array.
>
> Now i want to use this value inside my controller class.
>
> i am using params[:cs_priority]...
> but not working...
>
Take a look in your logs at the params your app is receiving and
you''ll see that it''s accessible as params[:abc] (since
''abc'' is the
first parameter you''re passing to select_tag)
Fred
> please help me...in reading value from the drop down...
>
> Thanks in advance...
> --
> 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 post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---