Sha256: 8f4355ad30bc991f115fae39eb7e79d5644796cc05fb13f3fdb0b15de8ff4a58
Contents?: true
Size: 591 Bytes
Versions: 1
Compression:
Stored size: 591 Bytes
Contents
require 'render_engine' class RenderController < ApplicationController layout false # ecco pronta la regex per beccare i segnalatori dei template: %%[a-z_]+:[a-z_]*(:[a-z_]+)?%% def index show end def show # show page with :url_name if params[:urlname] @page = Page.find_by_urlname params[:urlname] else # :todo: contrassegnare in qualche maniera e far scegliere all'utente la pagina iniziale @page = Page.find :first if @page.nil? render :partial=>"blank" else render :action => 'show' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
compages-0.4.0 | app/controllers/render_controller.rb |