Hi everyone, I remember seeing somewhere on the internet a small howto to create drop-down with fancy indentation in the drop-down options: - Users - me - you -Groups - them - us Unfortunatley I have been unable to find this howto again,and I have no idea how to do this on my own. Does this ring a bellto anyone? Thank you in advance, Jd --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
<select> <optgroup label="Users"> <option>me</option> <option>you</option> </optgroup> <optgroup label="Groups"> ... </optgroup> </select> Jeremy On Sep 2, 2006, at 12:29 PM, jackdan wrote:> > Hi everyone, > > I remember seeing somewhere on the internet a small howto to create > drop-down with fancy indentation in the drop-down options: > > - Users > - me > - you > -Groups > - them > - us > > Unfortunatley I have been unable to find this howto again,and I > have no > idea how to do this on my own. > > Does this ring a bellto anyone? > > Thank you in advance, > > Jd > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> <select> > <optgroup label="Users"> > <option>me</option> > <option>you</option> > </optgroup> > <optgroup label="Groups"> > ... > </optgroup> > </select>You might want to look at option_groups_from_collection_for_select as well. http://api.rubyonrails.com/classes/ActionView/Helpers/FormOptionsHelper.html#M000405 Cheers, Jord --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---