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