When I run queries (e.g. MyModel.where(...) or record.associated_things) in the console, how can I see the actual database queries being run so I can gain more understanding of what is happening?
When I run queries (e.g. MyModel.where(…) or record.associated_things ) in the console, how can
Share
Rails 3+
Enter this line in the console:
Rails 2
Enter this line in the console: