Displaying 1 result from an estimated 1 matches for "menu_section".
2006 Aug 03
3
HELP: multiple select list in ror
...e code in a view that generates a multiple select:
<select name="menu_select" size="5" multiple="multiple">
<% for m in Menu.find(:all) %>
<!-- this needs to be abstracted in ror fashion -->
<option value="<%= m.id %>"
<%= if @menu_section.in_menu?(m) then "selected=\"selected\">" else ">"
end %>
<%= m.name %>
</option>
<% end %>
</select>
It generates a nice multiple select and when used to view a menu section
it correctly displays the menus it belongs to even if the...