I'm looking to rewrite our company website into ROR. We have the typical row of drop down menu items (e.g. "Products & Services", "About Us", "Contact", etc).
Does Rails provide a shortcut for building these menus?
Thanks,
P
I'm looking to rewrite our company website into ROR. We have the typical row of drop down menu items (e.g. "Products & Services", "About Us", "Contact", etc).
Does Rails provide a shortcut for building these menus?
Thanks,
P
Not in Rails per se. Read up on Twitter Bootstrap; it provides a backbone structure for all that sort of stuff.
<%= f.select :page, options_for_select(%w[Services About\ Us Contact]) %>
(where page is the field name), should work, please check How to have a drop down <select> field in a rails form? too for better clarification and examples