Sha256: 8468b8e7a096b46511e035e712fd0d524654b7b4b636e666337b6d72898d21b0

Contents?: true

Size: 316 Bytes

Versions: 17

Compression:

Stored size: 316 Bytes

Contents

class SectionsController < ApplicationController

  def show
    @publication = Publication.matching_slug(params[:publication_slug]).first
    @content = @publication.managed_contents.where(:slug => params[:content_slug]).first
    @section = @content.sections.where(:slug => params[:section_slug]).first
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
editorial_logic-1.4.5 app/controllers/sections_controller.rb
editorial_logic-1.4.4 app/controllers/sections_controller.rb
editorial_logic-1.4.3 app/controllers/sections_controller.rb
editorial_logic-1.4.2 app/controllers/sections_controller.rb
editorial_logic-1.4.1 app/controllers/sections_controller.rb
editorial_logic-1.4.0 app/controllers/sections_controller.rb
editorial_logic-1.3.3 app/controllers/sections_controller.rb
editorial_logic-1.3.2 app/controllers/sections_controller.rb
editorial_logic-1.3.1 app/controllers/sections_controller.rb
editorial_logic-1.3.0 app/controllers/sections_controller.rb
editorial_logic-1.1.6 app/controllers/sections_controller.rb
editorial_logic-1.1.5 app/controllers/sections_controller.rb
editorial_logic-1.1.4 app/controllers/sections_controller.rb
editorial_logic-1.1.3 app/controllers/sections_controller.rb
editorial_logic-1.1.2 app/controllers/sections_controller.rb
editorial_logic-1.1.1 app/controllers/sections_controller.rb
editorial_logic-1.1.0 app/controllers/sections_controller.rb