1 2 3 4 5 6 7 8
class AdminController < ApplicationController before_filter :login_required def index @drafts = Page.drafts end end