Links edition
This commit is contained in:
1 parent
d9ba76ebd5
commit
24ae7ed5e3
31 files changed
+184
-98
No files matched your search
@@ -1,12 +1,21 @@
|
||||
class Admin::PagesController < ApplicationController
|
||||
|
||||
layout "content"
|
||||
|
||||
before_filter :authenticate_user!
|
||||
before_filter :find_parent_item
|
||||
before_filter :is_admin?
|
||||
before_filter :set_current_item
|
||||
|
||||
def show
|
||||
#TODO
|
||||
@page = Page.find(params[:id])
|
||||
respond_to do |format|
|
||||
format.html {
|
||||
@item = @page
|
||||
render 'admin/items/index'
|
||||
}
|
||||
format.js {}
|
||||
end
|
||||
end
|
||||
|
||||
def new
|
||||
|
||||
Reference in new issue
Block a user