views:

32

answers:

2

I would like to include query statistics (i.e. records returned and elapsed time) in my Index views (similar to Google's). I found the records returned, but am having difficultly locating the elapsed time.

I'm using Rails3 beta and the will_paginate plugin.

A: 

You can use mongrel It displays all the queries in your terminal.

to install mongrel

"gem install mongrel" command

+2  A: 

The Rails Footnote plugin does this by registering itself with ActiveRecord as a connection adapter. Here's the relevant source code from that project that should enable you to get started.

John Topley