use to validate form multiply submit
Add this line to your application's Gemfile:
gem 'multi_submit_check'
And then execute:
$ bundle
Or install it yourself as:
$ gem install multi_submit_check
you can use method 'token_field' to add a hash token to you form ,or make a configuration 'config.multi_submit_check = true' in application.rb file to automatically make token for every form made by 'form_for' and 'form_for' methods.In default the configuration is false.
- Fork it ( http://github.com//multi_submit_check/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request