Sha256: 55c0542b72f272f68543802c42a91f5ae7163c6a822610a37597121a93b7d40f
Contents?: true
Size: 485 Bytes
Versions: 4
Compression:
Stored size: 485 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
4 entries across 4 versions & 1 rubygems