posted in articles
ActiveRecord is a great tool for making SQL a more readable. However, there
are some things that are really difficult to do in pure ActiveRecord. One of those is
SELECT * FROM (subquery) style of query. Before writing it in a raw
SQL query, check out the following tip for preserving some ActiveRecord goodness.