Show generated SQL in Rails 3 console
Have you ever wanted to see the resulting SQL of a query in Rails console? Well, unfortunately there's not really an 'easy' way to do this, other than hacking the console, so here we go. Fire up your Rails console. I'm using Rails 3, but this should would in <3...