title: Rails AJAX reload the page. Why?
body: <p>I create a form:</p>
  
  <pre><code>&lt;%= form_for @cover, :remote =&gt; true, :html =&gt; { :multipart =&gt; true } do |file| %&gt;
      &lt;%= file.file_field(:image, :class =&gt; 'choose_image', :onchange =&gt; 'this.form.submit()') %&gt;
      &lt;input name="authenticity_token" type="hidden" value="&lt;%=form_authenticity_token %&gt;"/&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>So, when I select image it uploads, OK, but after it reload the page and clear all my data. How can I repair it? </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>My coversController:</p>
  
  <pre><code>def create
      @cover = Cover.create(cover_params)
  
      if @cover.save
          redirect_to :back
      end
  end
  </code></pre>