Ruby on Rails/Twitter Bootstrap Popover not working correctly after jQuery update
===

I'm using Twitter bootstrap popover in Rails 3. <br />
When I initially load the page (show action), the popover works correctly.  <br />

My partials (one calls another) look like this:

    <span class="solution_votes_stat" id="<%= 'solution_votes_stat_' + sid.to_s %>">
       <%= render :partial => 'solutions/popover', :locals => {:s => s} %>
    </span>

_popover.html.erb looks like this:<br />

    <% sid = s.id %>
    <% solution_vote_up_count = s.solution_votes.votes_up.count %>

    <% all_users_who_voted_up(sid) %>
    <span class = "popover-with-html" rel = "popover"  
          data-original-title = "Who likes this" 
          data-content = "<%= render :partial => 'solutions/users_who_voted_up', :locals => {:users_who_voted_up => @users_who_voted_up} %>" 
          id="<%= 'solution_' + sid.to_s + '_up_votes' %>">
      <%= solution_vote_up_count %> 
    </span>
    <%= solution_vote_up_count==1 ? "Advisor" : "Advisors" %>


This produces HTML like this:

    <span class="solution_votes_stat" id="solution_votes_stat_1">
        <span class = "popover-with-html" rel = "popover"  
              data-original-title = "Who likes this" 
              data-content = "<ul><li>Admin</li></ul>" 
              id="solution_1_up_votes">1 </span>
           Advisor
        </span>
    </span>

So far, so good => it all works correctly.<br />
The problem is when I try to update this with jQuery.<br />

In my up_votes.js.erb, I have:<br />
      <pre><code>update_popover = ('<%= escape_javascript(render(:partial => "solutions/popover", :locals => {:s => @solution}))%>');
$('<%= "#solution_votes_stat_"+@solution.id.to_s %>').html(update_popover);</pre></code>


As a test, I clicked down vote and then up vote.  When I look at the HTML produced, it looks EXACTLY the same as the one above except that it does not work now (no popover).

Any ideas on what is happening and how to fix this?