hi ,

i am not clear about how to intergrate the logic you have given with
my application.

in my logic i have a observe_field it will take the parameter s from
arry assignd as input to this:
e.g:
search:<%= select_tag 'category',options_for_select([['mpeg2
>> 25fps'],
>>                       ['mpeg2 30fps'],
>>                       ['mpeg2'],
>>                       ['1920x1080'],
>>                       ['h264'],
>>                       ['aac']], to_s),  :onchange =>
>> "content.category(this,notnull ) ;"  %>

from the above code the observe_field is taking the params from category.like
<%= observe_field 'category',.....%>
here my doubt is if i have one more dropdown box box with name
codecname how to add the name of that array with the observe_field?
can you tell me is it possible to by this way?

thanks
Srikanth



On Fri, Dec 12, 2008 at 2:19 PM, Priya Buvan
<[email protected]> wrote:
>
> Codecformat:
> <%=
> collection_select(:destinationtable_name,:destinationcolumn_name,Sourcetablename.find(:all
> ),sourcecolumn_name,:Sourcetablename) %>
> Eg:
> <%= collection_select(:author,:name,Book.find(:all ),author_name,:book)
> %>
>
> sreekanth.G wrote:
>> 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
>
> --
> 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