Rails turbolinks break submit remote form
I'm having a rather weird problem using Rails 4, Turbolinks and a remote form. I have a form looking like: <%= form_for [object], remote: true do |f| %> <td><%= f.text_field :name, class: 'form-control' %></td> <td><%= f.email_field :email, class: 'form-control' %></td> <td><%= f.submit button_name, class: 'btn btn-sm btn-primary' %></td> <% end %> This form adds (creates) a new object. It does however not always work: When I load the page directly using the URL or a refresh; it works When I navigate from my app to this page; it fails When disabling Turbolinks for this link, the page worked