On Dec 21, 7:14 am, Julien Palmas
<jul...-RJf3nWr7EOigSpxsJD1C4w@public.gmane.org>
wrote:> Hi list,
>
> In Rails logs, at the end of each request, the log states something
> like
> Completed in 37ms (View: 1, DB: 8)
>
> Is there a simple way to access the "DB: 8" info in the view ?
>
If you''re just looking to access it in development, take a look at
Rails Footnotes:
http://github.com/josevalim/rails-footnotes
which can do that and a bunch more. If you need it in production, you
might want to poke around the internals of rails-footnotes to figure
out to get the info.
--Matt Jones
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.