Orbit/app/controllers/pages_controller.rb

18 lines
309 B
Ruby

class PagesController < ApplicationController
def index
@page = Page.find_by_name('root')
if @page
render_liquid_page
else
render :text => 'You need a home page'
end
end
def show
@page = Page.find_by_name(params[:page_name])
render_liquid_page
end
end