title: $.ajax request in Rails 4 app doesn't render view
body: <p>I'm new to Rails and I'm trying to submit model data to a controller method, from javascxript, and render the list of results...</p>
  
  <pre><code>function submitResults() {
    resultURL = "/result";
    resultData = JSON.stringify(results);
    $.ajax({
      type: "POST",
      url: resultURL,
      data: { results: resultData},
      contentType: "application/html",
      dataType: "html"
    });  
  </code></pre>
  
  <p>The server shows the controller method is executed and the view is rendered...</p>
  
  <pre><code>Started POST "/result" for 127.0.0.1 at 2014-11-14 17:36:32 -0600
  Processing by ResultsController#create as HTML
    Result Load (0.7ms)  SELECT "results".* FROM "results"
    Rendered results/index.html.erb within layouts/application (366.0ms)
  Completed 200 OK in 4722ms (Views: 408.3ms | ActiveRecord: 1.3ms)
  </code></pre>
  
  <p>but the browser doesn't render the view. Here's my create method that's triggered by the $.ajax call...</p>
  
  <pre><code>def create
    result = Result.new(result_params)
    result.save
    @results = Result.all
    respond_to do |format|
      format.html { render :index }
    end
  end
  </code></pre>
  
  <p>Why doesn't the browser load the index view?</p>