Hi all, I am working on a database and need the capabilities to have a drop down field (list) that can handle multiple selections. I cannot figure out how to store the data in the database, retrieve the values from the database and the type of field to choose. For example, I''ve list of locations in my view.rhtml .I want to store selected values in database and if retrieve them when edit the data. Please help me out. Thanks, -- 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 -~----------~----~----~----~------~----~------~--~---
Jim wrote:> I have the same problem. Did you ever get this figured out?I also have same problem. Get to ctrl and click on dropdown list but cant save selections to DB. -- 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 -~----------~----~----~----~------~----~------~--~---
Rahul Ha wrote:> Hi all, > I am working on a database and need the capabilities to have a drop > down field (list) that can handle multiple selections. I cannot figure > out how to store the data in the database, retrieve the values from the > database and the type of field to choose. For example, I''ve list of > locations in my view.rhtml .I want to store selected values in database > and if retrieve them when edit the data. > Please help me out. > > Thanks,If you type in the following in your combo box code then though you wont get a drop down list but you will get a multiple select box. :multiple=>true -- 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 -~----------~----~----~----~------~----~------~--~---