Class: StyleguidesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- StyleguidesController
- Defined in:
- app/controllers/styleguides_controller.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
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 |
#index ⇒ Object
16 17 18 |
# File 'app/controllers/styleguides_controller.rb', line 16 def index redirect_to nkss.root_url + "1" end |
#show ⇒ Object
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 |