MiniProfiler not showing up on the page

Viewed 3760

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.

4 Answers

I know this is very late, but another potential issue that may cause this problem is JS errors.

If there are any unresolved JS errors, the badge likely won't show up.

So make sure to squash those before pulling your hair out.

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

MiniProfiler can also be set hidden by default

# config/initializers/mini_profiler.rb   
Rack::MiniProfiler.config.start_hidden = true
Related