Sha256: 8bf9acba592f312c5dd02729ec541a4587ef3af645ddb7d35b3cd852d0f34175
Contents?: true
Size: 354 Bytes
Versions: 1
Compression:
Stored size: 354 Bytes
Contents
module StyleGuide class StyleController < StyleGuide::ApplicationController before_filter :load_sections def index @active = @sections.first render :show end def show p params[:id] p @sections.map(&:id) @active = @sections.detect { |section| section.id == params[:id] } p @active end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
style-guide-0.2.0 | app/controllers/style_guide/style_controller.rb |