Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MiniProfiler not showing up on the page

I’m having problems getting MiniProfiler to show me the reports. I’m just in the Dev environment, which should show it all the time. Adding ?pp=help does bring up the help page. In tmp/miniprofile, there are a ton of mp_timers_ files. Apparently something is happening back there.

At first I thought it was a weird CSS issue, like my navigation bar is covering it. I tried loading the page without CSS and the MiniProfile box still doesn’t show up.

In case it matters, I do not have a before_filter set up. When I use the simple one from their docs, though, it doesn't help anything.

like image 738
Nathan Avatar asked Aug 14 '12 15:08

Nathan


1 Answers

I didn't have it show up either due to having an old version of the gem without the currently needed initializer.

To fix it, I just ran the generator which added an initializer to set up rack-mini-profiler in development:

bundle exec rails g rack_profiler:install

like image 85
rassom Avatar answered Sep 21 '22 14:09

rassom