HI, i need to diaplay data''s in a List box. actuall i don''t know coding for List box. if its combox box means i can use collection_select. so can anyonel tell this- urgent -- 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 -~----------~----~----~----~------~----~------~--~---
> i need to diaplay data''s in a List box. actuall i don''t know coding > for List box. if its combox box means i can use collection_select. so > can anyonel tell this- urgentYou can use collection_select for this: collection_select(''object'', ''method'', @panels, :id, :name, {}, {:multiple => ''multiple''}) Also, it is sometimes considered quite rude to post messages with ''urgent'' in them (as you have done in your last 3 posts). The response from this group is normally very quick as everyone is happy to help, regardless of urgency on your part. Steve --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
hi, i got the answer when i user the panel table. but when i have to use Demogaphic_categories table. if i use this it shows the error in Expected ./app/models/demographic_category.rb to define Demographic_category Like this. dataBase name is - Demographic_categories fields - id, name, allow_multiple my coding: index.rhtml <%= collection_select(''object'', ''method'', @demographic_categories, :id, :name, {}, {:multiple => ''multiple''}) %> in controller: @demographic_categories=Demographic_category.find(:all); can u tell this what''s the error in this? please Stephen Bartholomew wrote:>> i need to diaplay data''s in a List box. actuall i don''t know coding >> for List box. if its combox box means i can use collection_select. so >> can anyonel tell this- urgent > You can use collection_select for this: > > collection_select(''object'', ''method'', @panels, :id, :name, {}, > {:multiple => ''multiple''}) > > Also, it is sometimes considered quite rude to post messages with > ''urgent'' in them (as you have done in your last 3 posts). The > response from this group is normally very quick as everyone is happy > to help, regardless of urgency on your part. > > Steve-- 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 -~----------~----~----~----~------~----~------~--~---