Turbolinks behaviour for forms.
- Add to your Gemfile:
gem 'turbolinks', git: 'git://github.com/fs/turbolinks.git'
gem 'turboforms', git: 'git://github.com/fs/turboforms.git'
- Run
bundle install
. - Add to your Javascript manifest file (usually found at
app/assets/javascripts/application.js
).
//= require turbolinks
//= require jquery.turboforms
- Add
turboform: true
attribute to make your form turbo powered. - Restart your server and you're now using turboforms!
Make sure you have disabled config.http_authenticatable_on_xhr