Please sign in to comment.
ActiveRecord::Base#<=> has been removed. Primary keys may not be in o…
…rder, or even be numbers, so sorting by id doesn't make sense. Please use `sort_by` and specify the attribute you wish to sort with. For example, change: Post.all.to_a.sort to: Post.all.to_a.sort_by(&:id)
- Loading branch information...
Showing with 10 additions and 16 deletions.