Sha256: 4b75b91e2cf9c7033c4ae995e35bd497326aa1ed54cb38b7a164eca8151750a0

Contents?: true

Size: 483 Bytes

Versions: 23

Compression:

Stored size: 483 Bytes

Contents

module Kuhsaft
  class PagesController < ApplicationController
    respond_to :html

    def show
      @url = "#{params[:locale]}/#{params[:url]}" if params[:url].present? && params[:locale].present?
      @page = Kuhsaft::Page.find_by_url(@url)
      if @page.present?
        respond_with @page
      else
        if respond_to?(:handle_404)
          handle_404
        else
          raise ActionController::RoutingError.new('Not Found')
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
kuhsaft-1.3.1 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.2.15 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.2.14 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.2.13 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.2.12 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.2.11 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.2.10 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.2.9 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.2.8 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.2.7 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.2.6 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.2.5 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.2.4 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.2.3 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.2.2 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.2.1 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.2.0 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.1.1 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.1.0 app/controllers/kuhsaft/pages_controller.rb
kuhsaft-1.0.3 app/controllers/kuhsaft/pages_controller.rb