title: Rails SimpleForm validations don't work with remote true
body: <p>I have a SimpleForm setup with validations that is working well. I would now like to implement AJAX so I don't need to perform page reloads. When I add <code>:remote =&gt; true</code> to my code the validations no longer work. Is this expected behaviour? Should my SimpleForm validations no longer work when remote is set to true?</p>
  
  <p>Here is a sample of my code:</p>
  
  <pre><code>&lt;%= simple_form_for @business, :url =&gt; {:action =&gt; "create", :id =&gt; "submit_subscription_signup_form"}, :html =&gt; {:class =&gt; "form-horizontal"}, :remote =&gt; true do |f| %&gt;
  
    &lt;% if notification = f.error_notification %&gt;
      &lt;div class="alert alert-error fade in"&gt;
        &lt;a class="close" data-dismiss="alert" href="#"&gt;&amp;times;&lt;/a&gt;
        &lt;%= notification %&gt;
      &lt;/div&gt;
    &lt;% end %&gt;
  
    &lt;%= f.input :business_name, :input_html =&gt; { :class =&gt; "span6" } %&gt;
    &lt;%= f.input :address1, :input_html =&gt; { :class =&gt; "span6" } %&gt;
    &lt;%= f.input :city, :input_html =&gt; { :class =&gt; "span6" } %&gt;
  
    &lt;div class="actions" style="text-align: right;"&gt;&lt;%= f.submit "Sign Up", :class =&gt; 'btn btn-success', :id =&gt; "signup_form_submit_button" %&gt;&lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>And my create action in the controller:</p>
  
  <pre><code>def create
  @business = Business.new(params[:business])
  if @business.save 
    #removed logic for simplicity
    respond_to do |format|
      format.html
      format.js { render 'subscriptions/_logged_in' }
    end
  else
    respond_to do |format|
        format.html { render 'index' }
        format.js { render 'subscriptions/_signup' }
     end
  end
  end  
  </code></pre>
  
  <p>And seeing as I want the submit to fail and show validations, then my _signup.js.erb partial will be called. The main view contains a number of forms that are either shown or hidden through jQuery. So the _signup.js.erb contains:</p>
  
  <pre><code>$('#login_form').hide()
  $('#logged_in_form').hide()
  $('#signup_form').show()
  </code></pre>