I Used Rails rails console
a lot for debugging my rails applications. Every time when I started debugging something, I have to keep my console log[*.log] file to see what corresponding queries being generated to carried out the result I desired.
I found a better solution for that. I enhanced my rails console
, which enabled on-screen query logging for my rails application. I made a small change to #{RAILS_ROOT}/script/console.rb
file, which it will look to load any additional ruby file resides in #{RAILS_ROOT}/console_script/
if available.
I have also included the script I wanted to load in the first place, I find it quite handy to be able to see what kind of queries my commands are generating.
|
|
|
|