Sha256: bc6a0cd45b622b21640903658098e1e739091e2856cf000c0b02953d9e91c972

Contents?: true

Size: 373 Bytes

Versions: 6

Compression:

Stored size: 373 Bytes

Contents

module ForeverStyleGuide
  class StyleController < ForeverStyleGuide::ApplicationController
    helper ApplicationHelper
    before_filter :load_sections
    
    def show
      @current_section = @sections.detect { |section| section.id == params[:id] }
    end

    def demo
      render :file => File.join("forever_style_guide", "demo", params[:path])
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
forever_style_guide-1.2.9 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-1.2.8 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-1.2.7 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-1.2.5 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-1.2.4 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-1.2.3 app/controllers/forever_style_guide/style_controller.rb