I am trying to use Wiselinks gem.
Jquery code:
window.wiselinks = new Wiselinks("#wiselinks");
views/layout/application.html.erb :
<div id="wiselinks" style="width: 100%">
<%= yield %>
</div>
Show page html code:
<div class="profile_bar">
some code I want to keep after loading here
</div>
<a href="/users/feed/<%= @user.id %>" data-push="true">
</a>
Now, the feed page is loaded in #wiselinks
div and url is changed correctly.
But I would like to keep the profile bar div when loading different pages. I could use a partial but I will have to redo the same queries many times to get the data for the partial.
what is the best solution to solve this problem?