Hobo uses Rails' options_for_select to do its heavy lifting. If you patch rails with https://rails.lighthouseapp.com/projects/8994/tickets/1986-create-optgroups-in-options_for_select, you'll get the desired behaviour.
Note that the rails patch was produced by our resident expert Matt Jones. It's too bad they rejected the patch. :( Another option would be to patch select-menu so that it used grouped_options_for_select instead of options_for_select when appropriate. I'm not exactly sure what the interface should be -- perhaps if options were passed in via a "grouped-options" attribute rather than "options". If you create such a patch, I'd love to add it to Hobo. Bryan On May 19, 5:27 am, paulo <[email protected]> wrote: > Hi all, > > Is it possible to use optgroups within a filter-menu? I am creating an > array within my controller to populate my filter-menus but am not sure > how I could implement these groups within the menu / options array? > > Thanks in advance. > > Paul > > -- > You received this message because you are subscribed to the Google Groups > "Hobo Users" 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 > athttp://groups.google.com/group/hobousers?hl=en. -- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en.
