# Share button is broken in the Ruby version

**URL:** <https://community.miniprofiler.com/t/share-button-is-broken-in-the-ruby-version/160>\
**Category:** uncategorized\
**Created:** [April 26, 2012, 9:14pm UTC](https://community.miniprofiler.com/t/share-button-is-broken-in-the-ruby-version/160 "2012-04-26T21:14:05Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [April 26, 2012, 9:14pm UTC](https://community.miniprofiler.com/t/share-button-is-broken-in-the-ruby-version/160/1 "2012-04-26T21:14:05Z")

</div>

The share link currently takes you to a page full of gibberish, it should provide a page you can share with the team.

---

<div class="post-metadata">

**Author:** ![Evil\_Trout](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/evil_trout/32/1045_2.png) [@Evil\_Trout](https://community.miniprofiler.com/u/Evil_Trout)\
**Post date:** [May 3, 2012, 5:09am UTC](https://community.miniprofiler.com/t/share-button-is-broken-in-the-ruby-version/160/2 "2012-05-03T05:09:16Z")

</div>

Hey I looked into this a little bit. Unfortunately I’m not familiar with the C# version, but:

- It looks like when you hit the share button, it makes a request to results?id=something which is the same endpoint that the MP hits up to get the page loading results. However, MP gets the results in JSON.

- I assume we’re supposed to serve a non-JSON version when a user hits it up, ie, not through an AJAX request? Is there a template or page I can look at to see how it should look? Is the template included in the source somewhere?

Thanks!

---

<div class="post-metadata">

**Author:** ![Evil\_Trout](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/evil_trout/32/1045_2.png) [@Evil\_Trout](https://community.miniprofiler.com/u/Evil_Trout)\
**Post date:** [May 11, 2012, 6:15am UTC](https://community.miniprofiler.com/t/share-button-is-broken-in-the-ruby-version/160/3 "2012-05-11T06:15:19Z")

</div>

I think you mean if it’s not ajax right? I’ll try it out!

---

<div class="post-metadata">

**Author:** ![Evil\_Trout](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/evil_trout/32/1045_2.png) [@Evil\_Trout](https://community.miniprofiler.com/u/Evil_Trout)\
**Post date:** [May 11, 2012, 6:55am UTC](https://community.miniprofiler.com/t/share-button-is-broken-in-the-ruby-version/160/4 "2012-05-11T06:55:59Z")

</div>

Okay, I think I got it working! Check out [https://github.com/SamSaffron/MiniProfiler/commit/985e326fca0f98c27b37ba59f5a5dfac03dbffb1](https://github.com/SamSaffron/MiniProfiler/commit/985e326fca0f98c27b37ba59f5a5dfac03dbffb1) and let me know what you think.

---

<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:** [May 15, 2012, 3:36pm UTC](https://community.miniprofiler.com/t/share-button-is-broken-in-the-ruby-version/160/5 "2012-05-15T15:36:04Z")

</div>

Confirmed, this is working fine

---

<div class="post-metadata">

**Author:** ![Dave\_Sanders](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/dave_sanders/32/461_2.png) [@Dave\_Sanders](https://community.miniprofiler.com/u/Dave_Sanders)\
**Post date:** [July 27, 2012, 7:45am UTC](https://community.miniprofiler.com/t/share-button-is-broken-in-the-ruby-version/160/6 "2012-07-27T07:45:32Z")

</div>

I am just trying this out, ruby version 0.1.7 and sharing isn’t working for me. I get this message telling me the templates aren’t there:

```
/Users/dave/.rvm/gems/ruby-1.9.3-p194@pestnow/gems/rack-mini-profiler-0.1.7/lib/html/share.html

```

There are a bunch of other html / js files there, but not that one. Is the gem I have broken? (from rubygems) Or is this something I’m supposed to come up with and add? Or should I be pulling from git for the gem?

Sorry. Just confused. 🙂

---

<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:** [July 29, 2012, 10:15pm UTC](https://community.miniprofiler.com/t/share-button-is-broken-in-the-ruby-version/160/7 "2012-07-29T22:15:50Z")

</div>

Sorry, I regressed this, fixed in 0.1.8
