# Doesn't show in Dev environment after adding gem

**URL:** <https://community.miniprofiler.com/t/doesnt-show-in-dev-environment-after-adding-gem/76>\
**Category:** uncategorized\
**Created:** [August 13, 2012, 7:19am UTC](https://community.miniprofiler.com/t/doesnt-show-in-dev-environment-after-adding-gem/76 "2012-08-13T07:19:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathan](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@Nathan](https://community.miniprofiler.com/u/Nathan)\
**Post date:** [August 13, 2012, 7:19am UTC](https://community.miniprofiler.com/t/doesnt-show-in-dev-environment-after-adding-gem/76/1 "2012-08-13T07:19:24Z")

</div>

Hi.

I’m having problems with 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 have this `before_filter` set up:

```
def authorize_miniprofiler
  Rack::MiniProfiler.authorize_request if current_user.try(:admin?)
end

```

Any help would be great. This gem looks incredibly helpful.

---

<div class="post-metadata">

**Author:** ![sam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/sam/32/377_2.png) [@sam](https://community.miniprofiler.com/u/sam)\
**Post date:** [August 17, 2012, 2:47am UTC](https://community.miniprofiler.com/t/doesnt-show-in-dev-environment-after-adding-gem/76/2 "2012-08-17T02:47:01Z")

</div>

Have you looked at the html for the page generated? Is the profiler script included in the bottom of the file just before the end body tag?

Have you noticed any errors in chrome dev tools, is it getting 500s trying to request resources it needs?

What version of rails are you running?

---

<div class="post-metadata">

**Author:** ![Nathan](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@Nathan](https://community.miniprofiler.com/u/Nathan)\
**Post date:** [August 17, 2012, 7:02am UTC](https://community.miniprofiler.com/t/doesnt-show-in-dev-environment-after-adding-gem/76/3 "2012-08-17T07:02:31Z")

</div>

Hmm, I don’t see any profiler script before the body tag. Or anywhere. That’s probably it. Do I have to do anything manually?

In the Network tab, everything is either 200 or 304.

I’m on Rails 3.2.8, but it didn’t work with 3.2.5, either.

---

<div class="post-metadata">

**Author:** ![Nathan](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@Nathan](https://community.miniprofiler.com/u/Nathan)\
**Post date:** [August 26, 2012, 5:51pm UTC](https://community.miniprofiler.com/t/doesnt-show-in-dev-environment-after-adding-gem/76/4 "2012-08-26T17:51:40Z")

</div>

Looking into it more, it looks like Miniprofiler is conflicting with the Mixpanel gem. It tries to inject a script, too. I’m guessing that’s the problem. So I’ll just be disabling it for now.

---

<div class="post-metadata">

**Author:** ![sam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/sam/32/377_2.png) [@sam](https://community.miniprofiler.com/u/sam)\
**Post date:** [August 26, 2012, 10:03pm UTC](https://community.miniprofiler.com/t/doesnt-show-in-dev-environment-after-adding-gem/76/5 "2012-08-26T22:03:32Z")

</div>

awesome, thanks for letting me know that seems to be a real possibility, you can always manually insert the script for the time being
