title: Rails remote form succeeds, but no data is returned
body: <p>I have a simple remote form with one input and send button.
  I created listener for ajax:success:</p>
  
  <pre><code>$ -&gt;
    $form = $('#post-form')
  
    $form.on 'ajax:success', (e, data, status, xhr) -&gt;
      console.log e
      console.log data
      console.log status
      console.log xhr
  </code></pre>
  
  <p>And my controller:</p>
  
  <pre><code>  def create
      @post = Post.new(post_params)
      @post.user_id = 3
  
      if @post.save
        render partial: 'posts/view', locals: { post: @post }, status: :ok
      else
        render json: @post.errors, status: :unprocessable_entity
      end
    end
  </code></pre>
  
  <p>I see that request passes on backend and status 200 is returned:</p>
  
  <pre><code>Rendered posts/_view.html.erb (3.0ms) [cache miss]
  Completed 200 OK in 480ms (Views: 466.6ms | ActiveRecord: 7.0ms)
  </code></pre>
  
  <p>But in devtools I see:</p>
  
  <p><a href="https://i.stack.imgur.com/VELAq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VELAq.png" alt="enter image description here"></a></p>
  
  <p>What am I doing wrong?</p>