Class: Refinery::LocationExplorer::LocationsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/refinery/location_explorer/locations_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



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

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

#showObject



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

def show
  @location = decorate_location(Location.find(params[:id]))

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