Sha256: a575b172562ec03fe7225cf5d9e192249e53a9b464d0c8c292a38d5eb72ead60

Contents?: true

Size: 403 Bytes

Versions: 34

Compression:

Stored size: 403 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
      @hide_navigation = true
      render :file => File.join("forever_style_guide", "demo", params[:path])
    end

  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
forever_style_guide-3.0.7 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.6 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.5 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.4 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.3 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.2 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.1 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.0 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-2.0.3 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-2.0.2 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-2.0.1 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-2.0.0 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-1.2.11 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-1.2.10 app/controllers/forever_style_guide/style_controller.rb