title: Rails escape_javascript is not rendering stuff
body: <p>Here is my code</p>
  
  <pre><code>$(function(){
  $('#new_post').bind('ajax:success', function() {
      $('.posts').append("&lt;%=escape_javascript(render :partial=&gt;'post', :loca\
  ls=&gt;{:post=&gt;Post.new})%&gt;");
      });
  });
  </code></pre>
  
  <p>which results in a bizarre output, the page simply append <code>&lt;%=escape_javascript(render :partial=&gt;'post', :locals=&gt;{:post=&gt;Post.new})%&gt;</code> to my list.</p>
  
  <p>Does anyone know how this could happen?
  Thanks!</p>