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 -~----------~----~----~----~------~----~------~--~---

