Sha256: dcc41343f41b561f4a102255b75bb8408cf996ba210c377714b26f50b043ed2a
Contents?: true
Size: 320 Bytes
Versions: 4
Compression:
Stored size: 320 Bytes
Contents
class KitsuneController < ApplicationController def show @page = ::Page.find_by_url('/'+[params[:url]].flatten.join('/')) raise ::ActionController::RoutingError, "No route matches #{request.path.inspect}" unless @page.present? @title = @page.title render :layout => @page.layout if @page.layout end end
Version data entries
4 entries across 4 versions & 2 rubygems