Class ApplicationController
In: app/controllers/application.rb
Parent: ActionController::Base

Methods

Protected Instance methods

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.

Ensure there is a flash, and that it contains empty arrays for the three message levels

sortable: List of fields according to which the results can be sorted.

[Validate]