Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class DashboardController < ApplicationController
- before_filter :require_user, :only => [:show]
- def show
- @title = "Dashboard"
- unless current_user.quests.empty?
- @quests = current_user.quests.paginate :page => params[:page], :order => "deadline DESC"
- end
- end
- end
Add Comment
Please, Sign In to add comment