class Admin::PagesController < Admin::BaseController respond_to :html, :js def index @pages = Page.all @skip_filter = true end def edit end def update @page.attributes = params[:page] @page.save respond_with(@page) end def destroy @page.destroy respond_with(@page) end end