Class: StyleguidesController

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

Instance Method Summary collapse

Instance Method Details

#allObject



20
21
22
23
24
# File 'app/controllers/styleguides_controller.rb', line 20

def all
  @sections = styleguide_sections
  @single_page = true
  render template: "styleguides/all", layout: 'styleguide_page'
end

#indexObject



16
17
18
# File 'app/controllers/styleguides_controller.rb', line 16

def index
  redirect_to nkss.root_url + "1"
end

#showObject



10
11
12
13
14
# File 'app/controllers/styleguides_controller.rb', line 10

def show
  @section = params[:section].to_i

  render template: "styleguides/#{@section}", layout: 'styleguide_page'
end