This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
|
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_full_name(params[:page_name])
|
|
render_liquid_page
|
|
end
|
|
|
|
end
|