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

Version Path
ds-kitsune-0.2.5 app/controllers/kitsune_controller.rb
ds-kitsune-0.2.3 app/controllers/kitsune_controller.rb
kitsune-0.2.1 app/controllers/kitsune_controller.rb
kitsune-0.2.0 app/controllers/kitsune_controller.rb