Class: StyleGuide::StyleController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- StyleGuide::StyleController
- Defined in:
- app/controllers/style_guide/style_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
5 6 7 8 |
# File 'app/controllers/style_guide/style_controller.rb', line 5 def index @current_section = @sections.first render :show end |
#show ⇒ Object
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 |