Customize the native application menu and controller menu items. Refer to Application Menu in Device Capabilities for examples.
Set this parameter list in application.rb to customize the Rhodes default menu.
@default_menu = { "Item Label 1" => "/item1path", "Item Label 2" => "/item2path", ... } #=> overrides the Rhodes default menu
Item Label 1 |
Menu action or a path to a view (.erb) file |
To disable the Rhodes default menu, use an empty parameter list, as below.
@default_menu = {}
Set this parameter list in a controller.rb file to customize a controller menu.
@menu = { "Item Label 1" => "/item1path", "Item Label 2" => "/item2path", ... } #=> overrides the Rhodes default menu
Item Label 1 |
Menu action or a path to a view (.erb) file. |