title: render an action view using ajax with js.erb
body: <p>inside show.js.erb</p>
  
  <pre><code>$('#viewport').html("&lt;%= escape_javascript(render('show')) %&gt;");
  </code></pre>
  
  <p>I am trying to render the show view into the bottom of the index view. Show is not a partial.
  This doesn't work. But I'm sure this page gets executed because I tried something like 'hello world', and it gets rendered.</p>
  
  <p>other things i did are:</p>
  
  <p>added a div #viewport inside index view</p>
  
  <p>added remote: true in the links inside index view</p>
  
  <p>added render js { :layout => false } inside the controller's show action</p>