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