blob: 6e826c00b92d41517b4cbf3730da19dca439d763 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
class PagesController < ApplicationController
def preview
@page = Page.find(params[:id])
if @page
template = @page.valid_template
render(
:file => template,
:layout => "application"
)
end
end
def sort_images
page = Page.find(params[:id])
page.update_assets(params[:images])
render :nothing => true, :status => 200
end
end
|