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.27 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.26 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.25 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.24 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.23 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.22 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.21 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.20 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.19 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.18 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.17 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.16 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.15 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.14 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.13 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.12 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.11 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.10 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.9 app/controllers/forever_style_guide/style_controller.rb
forever_style_guide-3.0.8 app/controllers/forever_style_guide/style_controller.rb