Sha256: b912b70831c1aa0290e05dbf86f681b2a716034f4df363c120d76c6c4a9c6bd9
Contents?: true
Size: 392 Bytes
Versions: 5
Compression:
Stored size: 392 Bytes
Contents
module Kuhsaft class PagesController < ApplicationController respond_to :html before_filter :complete_url def show @page = Kuhsaft::Page.find_by_url(params[:url]) respond_with @page end private def complete_url params[:url] = "#{params[:locale]}/#{params[:url]}" if params[:url].present? && params[:locale].present? end end end
Version data entries
5 entries across 5 versions & 1 rubygems