hi ,

in tried in  same way but how to give the two collecton_select arrays
in my code:

i tried like this:
--------------------------------------------------------------------------------
codecformat:<%= select_tag
'codecformat',options_for_select([['mpeg2'],
                      ['h264'],
                      ['aac']], to_s),  :onchange =>
"content.category(this,notnull ) ;"  %>

combination:<%= select_tag 'category',options_for_select([['mpeg2 25fps'],
                      ['mpeg2 30fps'],
                      ['mpeg2'],
                      ['1920x1080'],
                      ['h264'],
                      ['aac']], to_s),  :onchange =>
"content.category(this,notnull ) ;"  %>
-----------------------------------------------------
now i have two colletion_select showned above

in observe_field  <%= observe_field 'category'%>
how to give this two names:

thanks
srikanth


On Fri, Dec 12, 2008 at 1:24 PM, Priya Buvan
<[email protected]> wrote:
>
> Ya you can do..
> But one thing, its not efficient to give the select options in code..
> You have to get from DB.. So that you can use collection_select..
> Use 2 collection_select for both the drop down boxes..
> Then use normal search query for search..
> --
> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to