Tag Archives: created_at

Descending Sort By in Model For Active Record Hash on Created_at attribute

If you have a couple collections from the database and you want to sort it without the help of Active Record, take a look at the sort_by method on Array type. I’ve used this before when I have a couple of collections which are slightly different but I need them in a chronological order. [...]
Posted in Ruby on Rails | Also tagged , , | Leave a comment