Class: StylesheetsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/stylesheets_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
9
10
# File 'app/controllers/stylesheets_controller.rb', line 6

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

#showObject



12
13
14
15
16
17
18
# File 'app/controllers/stylesheets_controller.rb', line 12

def show
  @stylesheet = Stylesheet.find(params[:id])

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