The Life of a Radar

Showing SQL Statements in script/console
20 Dec 2008

Today keiran_nz asked how to see SQL statements that occur when running code in script/console. After a little bit of mucking around in the terminal I worked it out to be:

REXML could not parse this XML/HTML: 
<span class='term'>tail -f log/development.log & script/console</span>

The first comment on this post Ashley Williams says you could do:

REXML could not parse this XML/HTML: 
<span class='term'>tail -f log/development.log & clear && script/console</span>

instead, and then goes further and sticks it in an alias in your .bashrc file (presumably):

REXML could not parse this XML/HTML: 
<span class='term'>alias rcon="tail -f log/development.log & clear && script/console"</span>
blog comments powered by Disqus