pivotalexperimental/style-guide

View on GitHub
app/controllers/style_guide/style_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
module StyleGuide
  class StyleController < StyleGuide::ApplicationController
    before_filter :load_sections

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

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