I have a sign up form (Simple Form):
<%= simple_form_for(User.new, as: 'user', url: registration_path('user'), html: {id: "signup-form"},:remote => true) do |f| %>
<input name="redirect_to" type="hidden" value="true"/>
<%= f.input :first_name, required: true, autofocus: true, placeholder: "First Name", label: false %>
<%= f.input :last_name, required: true, autofocus: true, placeholder: "Last Name", label: false %>
<%= f.input :email, required: true, autofocus: true, placeholder: "E-mail Address" %>
<%= f.input :password, required: true, hint: ("#{@minimum_password_length} characters minimum" if @validatable), placeholder: "Password" %>
<%= f.input :password_confirmation, required: true, placeholder: "Password Again" %>
<%= f.submit "Sign up", class: "btn btn-primary btn-lg btn-block", data: { target: "#confirm-modal", toggle: "modal", dismiss: "modal" }%>
<% end %>
When a user clicks on submit the form should do an Ajax POST to Devise::RegistrationsController create action and then show another modal data-target="#confirm-modal". The issue here is that it is not submitting any post request. Is there a specific configuration with Simple Form for this ?
:remote => true? If it works, then you need to rewriteCreate methodfromDevise::RegistrationsController. - 7urkm3n