title: Rendering partial in rails modal
body: <p>I'm having an issue with rendering a partial in a modal window. I've tried it with both simple modal as well as prototype-window. I'm basically trying to render a partial within the modal popup. Here is what it looks like now:</p>
  
  <pre><code>&lt;%=link_to_function("Share This!", "win = new Window({title: \"Share This\", width:200, height:150, destroyOnClose: true, recenterAuto:false});
  win.getContent().update("+escape_javascript(render :partial =&gt; 'groups/show')+");
  win.showCenter();
  ")%&gt;
  </code></pre>
  
  <p>I've tried multiple combinations of how to put the escape_javascript bit as well as trying this in simple modal.</p>
  
  <p>Any help would be really appreciated. </p>