Class: StyleGuide::StyleController

Inherits:
ApplicationController show all
Defined in:
app/controllers/style_guide/style_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#load_sections

Instance Method Details

#indexObject



5
6
7
8
# File 'app/controllers/style_guide/style_controller.rb', line 5

def index
  @current_section = @sections.first
  render :show
end

#showObject



10
11
12
# File 'app/controllers/style_guide/style_controller.rb', line 10

def show
  @current_section = @sections.detect { |section| section.id == params[:id] }
end