viewing SQL statements when using the rails console

Ever wanted to view the SQL statements being issued to your database when you are in the Rails console (i.e. ./script/console), i.e. in development mode. I posted on the mailing list and got one way forward here.

Solution: Run up a server in a separate terminal to view the SQL statements (i.e. ./script/server). They appear here fine.

Comments are closed.