| Class | ApplicationController |
| In: |
app/controllers/application.rb
|
| Parent: | ActionController::Base |
The controller for each of the admin tasks can include a Menu constant. This constant will be an array, with each element being an array with two elements: The name to display for the option to show and the name of one of its actions. Thus, in order to provide links in the main menu to the ‘list’ and ‘status’ actions of a controller:
def SomeThingController < Admin
Menu = [[_('General list'), :list], [_('Status overview'), :status]]
Yes, don‘t forget i18n.