Sha256: 3627536935c2b754bdc5106745d5d8e580e5e3d72e458436ecfd83144e041ef6

Contents?: true

Size: 278 Bytes

Versions: 25

Compression:

Stored size: 278 Bytes

Contents

class PagesController < ApplicationController

  def show
    @page = Page.find params[:id]
    if @page.nil?
      redirect_to root_path
      return
    end
    render params[:id].underscore if lookup_context.template_exists?(params[:id].underscore, "pages", false)
  end

end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
pixelforce_cms-2.6 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-2.5 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-2.4 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-2.3 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-2.2 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-2.0 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-1.0 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-0.9.9.9 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-0.9.9.8 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-0.9.9.7 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-0.9.9.6 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-0.9.9.5 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-0.9.9.4 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-0.9.9.3 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-0.9.9.2 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-0.9.9.1 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-0.9.8 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-0.9.7 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-0.9.5 lib/generators/pixelforce_cms/templates/pages_controller.rb
pixelforce_cms-0.9.4 lib/generators/pixelforce_cms/templates/pages_controller.rb