0

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

Per
  • 31
  • 4

2 Answers2

0

Not in Rails per se. Read up on Twitter Bootstrap; it provides a backbone structure for all that sort of stuff.

t56k
  • 6,769
  • 9
  • 52
  • 115
0
<%= 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

Community
  • 1
  • 1
iCyborg
  • 4,699
  • 15
  • 53
  • 84