search for: atask

Displaying 1 result from an estimated 1 matches for "atask".

Did you mean: task
2006 Mar 09
4
sort-weirdness - active record issue?
...so they don''t get sorted, but they''re there as the puts shows. The sort method is below. When i didn''t include the check for nil in it, it threw an exception, saying nil doesn''t understand <=>. # Sort by due date (scheduled_end_date) def <=> aTask @scheduled_end_date.nil? ? -1 : @scheduled_end_date <=> aTask.scheduled_end_date end Any ideas would be greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060309/987e777...