Coitem.find(params[:id]).destroy
redirect_to :action => 'list'
end
+
+ # Awesome, paginating overdue list, ordered by customer
+ def overdue
+ @coitem_pages, @coitems = paginate :coitems, :per_page => 50, :conditions => "due_date < DATE('NOW', 'LOCALTIME')", :order => "customer_id"
+ render :action => 'list'
+ end
end