Skip to content

Instantly share code, notes, and snippets.

@cwsaylor
Created August 3, 2011 18:12
Show Gist options
  • Save cwsaylor/1123361 to your computer and use it in GitHub Desktop.
Save cwsaylor/1123361 to your computer and use it in GitHub Desktop.
Log sql queries to console in Rails 3.0
ActiveRecord::Base.logger = Logger.new(STDOUT) if defined? Rails::Console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment