Class: Refinery::Menus::MenusController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/refinery/menus/menus_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



8
9
10
11
12
# File 'app/controllers/refinery/menus/menus_controller.rb', line 8

def index
  # you can use meta fields from your model instead (e.g. browser_title)
  # by swapping @page for @menu in the line below:
  present(@page)
end

#showObject



14
15
16
17
18
19
20
# File 'app/controllers/refinery/menus/menus_controller.rb', line 14

def show
  @menu = Menu.find(params[:id])

  # you can use meta fields from your model instead (e.g. browser_title)
  # by swapping @page for @menu in the line below:
  present(@page)
end