blob: 0b7e98f77ecee476e657cb96c539ede1f61fe741 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
class PagesController < ApplicationController
# Private
before_action :login_required
def preview
@page = Page.find(params[:id])
if @page
template = @page.valid_template
render(
template: template,
layout: "application"
)
end
end
end
|