[Ruby] Show SQL for Active Record

Neil Moomey neil at motznik.com
Mon Jan 29 17:29:24 PST 2007


Is there a trick for showing the sql Active Record generates?  I've been
misspelling a fieldname on purpose to generate an error so it will display
the sql but there must be a better way.  Sometimes it's nice to see the SQL
especially for creating indexes.

Neil


More information about the Ruby mailing list