I am a bit confused on the easiest way to add a drop down list on a page, that is all data from another table? It seems there would be a gem or package made to do this. It has to be pretty common stuff. If a user picks an item from the list, I just want the id, to store in a field in the active table. how are you handling this? i was looking at acts_as_list. any suggestions? i have to do this a lot, so i was wondering. like, are you making static lists for web page. 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 -~----------~----~----~----~------~----~------~--~---
On Nov 28, 2007 4:25 PM, Trent Black <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I am a bit confused on the easiest way to add a drop down list on a > page, > that is all data from another table?http://api.rubyonrails.com/classes/ActionView/Helpers/FormOptionsHelper.html#M000512 http://api.rubyonrails.com/classes/ActionView/Helpers/FormOptionsHelper.html#M000517 -- Greg Donald http://destiney.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 -~----------~----~----~----~------~----~------~--~---
Greg Donald wrote:> On Nov 28, 2007 4:25 PM, Trent Black <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: >> I am a bit confused on the easiest way to add a drop down list on a >> page, >> that is all data from another table? > > http://api.rubyonrails.com/classes/ActionView/Helpers/FormOptionsHelper.html#M000512 > > http://api.rubyonrails.com/classes/ActionView/Helpers/FormOptionsHelper.html#M000517 > > > > -- > Greg Donald > http://destiney.com/thanks a bunch..... -- 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 -~----------~----~----~----~------~----~------~--~---
Thank you. I''ve been wondering about this. John On Nov 28, 5:00 pm, Trent Black <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Greg Donald wrote: > > On Nov 28, 2007 4:25 PM, Trent Black <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > wrote: > >> I am a bit confused on the easiest way to add a drop down list on a > >> page, > >> that is all data from another table? > > >http://api.rubyonrails.com/classes/ActionView/Helpers/FormOptionsHelp... > > >http://api.rubyonrails.com/classes/ActionView/Helpers/FormOptionsHelp... > > > -- > > Greg Donald > >http://destiney.com/ > > thanks a bunch..... > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---