Ruby on Rails
Friday, April 30, 2010
In rails 2.3.5 world I get to see all the sql statements on my
console. Thanks to following line of code in my ~/.irbc
if ENV['RAILS_ENV']
Object.const_set(:RAILS_DEFAULT_LOGGER, Logger.new(STDOUT))
end
However above code does not do its magic in rails3 world.
In rails3 what do I need to do to see sql statements in my rails
console.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment