title: Rails - CanCan - If can? works on page load but not via a AJAX Partial
body: <p>Hello I have the following in a partial. </p>
  
  <pre><code>&lt;% if can? :update, @permission %&gt;
  Yes
  &lt;% end %&gt;
  </code></pre>
  
  <p>For the exact same user, when this loads via html this works great. But when I render that partial via ajax, as so:</p>
  
  <pre><code>$('#current').html('&lt;%=escape_javascript(render :partial =&gt;"permissions/teammembers", :locals =&gt; {:teammembers =&gt; @teammembers}) %&gt;');
  </code></pre>
  
  <p>Then cancan is return false, why is that? the current_user is the same person making the request?</p>
  
  <p>Thanks</p>