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