RailsCasts Pro episodes are now free!
Learn more or hide this
def index @tasks = Task.find_incomplete end
def self.find_incomplete find_all_by_complete(false, :order => 'created_at DESC') end
def show @project = Project.find(params[:id]) @tasks = @project.tasks.find_incomplete end