Sha256: 726ad4052ea7a31dc65ca44357723976f12c84d7fb47bbd7705905f067dfe968

Contents?: true

Size: 308 Bytes

Versions: 11

Compression:

Stored size: 308 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
style-guide-1.1.1 app/controllers/style_guide/style_controller.rb
style-guide-1.1.0 app/controllers/style_guide/style_controller.rb
style-guide-1.0.0 app/controllers/style_guide/style_controller.rb
style-guide-0.7.4 app/controllers/style_guide/style_controller.rb
style-guide-0.7.3 app/controllers/style_guide/style_controller.rb
style-guide-0.7.2 app/controllers/style_guide/style_controller.rb
style-guide-0.7.0 app/controllers/style_guide/style_controller.rb
style-guide-0.6.2 app/controllers/style_guide/style_controller.rb
style-guide-0.6.1 app/controllers/style_guide/style_controller.rb
style-guide-0.6.0 app/controllers/style_guide/style_controller.rb
style-guide-0.5.0 app/controllers/style_guide/style_controller.rb