Wednesday, June 30, 2010

Showing SQL statements in the Rails console


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

No comments: