title: Sending a form with remote true in Rails 4
body: <p>I have a form for updating an image with </p>
  
  <pre><code>&lt;%= form_for current_user, url: update_image_user_path(current_user), method: :post, html: {multipart: :true, remote: true},  :authenticity_token =&gt; true do |f| %&gt;
  </code></pre>
  
  <p>the action has </p>
  
  <pre><code>respond_to do |format|
          format.js
          format.html
      end
  </code></pre>
  
  <p>but I am getting the following error</p>
  
  <pre><code>ActionView::MissingTemplate - Missing template users/update_image, application/update_image with {:locale=&gt;[:en], :formats=&gt;[:html], :handlers=&gt;[:erb, :builder, :raw, :ruby, :coffee]}.
  </code></pre>
  
  <p>I don't have a update_image.html.erb template, but from the error I learn that the request isn't sent as js format</p>
  
  <p>What am I missing?</p>