Sha256: b6664cb6df38d133d9195d4c19cff9cbe271e12f6126ec954660c78b05af2fb5

Contents?: true

Size: 271 Bytes

Versions: 2

Compression:

Stored size: 271 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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kitsune-0.1.5 app/controllers/kitsune_controller.rb
kitsune-0.1.4 app/controllers/kitsune_controller.rb