title: Rendering Rails partial in an ajax success callback
body: <p>Trying to render a partial straight from the controller like this:</p>
  
  <pre><code>def show
    @show = ...
    respond_to do |format|
      format.html
      format.js { render :partial =&gt; "some_partial" }
    end
  end
  </code></pre>
  
  <p>Since the <code>$content</code> (below) is dynamic, I can't use the action's <code>show.js.erb</code> file to render the partial.<br>
  Instead I just want to return the HTML directly to the callback's <code>response</code> like this:</p>
  
  <pre><code>var $content = $(some_dynamic_selector);
  $.ajax({
    url: '/show',
    type: 'GET',
    success: function(response) {
      $content.html(response);
    }
  });
  </code></pre>
  
  <p>But this seems to return the <code>format.html</code>'s HTML from the server, and not the partial.</p>
  
  <p>To get the partial's HTML, I have to add <code>dataType: 'script'</code>, but that tries to execute the response directly.</p>
  
  <p><strong>Question:</strong> Is there a way to handle a plain HTML response in the ajax success callback?</p>