RailsCasts Pro episodes are now free!
Learn more or hide this
References
script/plugin install http://scope-out-rails.googlecode.com/svn/trunk/
scope_out :incomplete, :conditions => ['complete=?', false], :order => 'name'
@tasks = Task.find_incomplete(:all)
has_many :tasks, :extend => Task::AssociationMethods
def show @project = Project.find(params[:id]) @tasks = @project.tasks.find_incomplete(:all) end