Sha256: 6e5c2b145c2d7adea77af3f04101a2020ad6ae38fedefc7056b0787304afb2e3
Contents?: true
Size: 505 Bytes
Versions: 187
Compression:
Stored size: 505 Bytes
Contents
class Lalala::Public::PagesController < ::ApplicationController before_filter :load_page def show Rails.logger.debug "SCRIPT_NAME: #{request.env['SCRIPT_NAME'].inspect}" Rails.logger.debug "PATH_INFO: #{request.env['PATH_INFO'].inspect}" Rails.logger.debug "page path: #{@page.ancestry_path.inspect}" end private def load_page @page = env['lalala.page'] unless @page raise ActionController::RoutingError.new("No page for path: "+request.path) end end end
Version data entries
187 entries across 187 versions & 1 rubygems