Rails: how to show SQL logs in console

Posted by Arkham on September 2nd, 2011

Simply type in rails console:

ActiveRecord::Base.logger = Logger.new(STDOUT)

This entry was posted on Friday, September 2nd, 2011 at 11:58 and is filed under thoughts. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Tags: , , ,

Comments are closed.