blob: e29826560efca339bf873a214207014a1d0aac7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class PagesController < ApplicationController
def preview
@page = Page.find(params[:id])
if @page
template = @page.valid_template
render(
:file => template,
:layout => "application"
)
end
end
end
|