Onestep
Prevent users sending duplicate requests by rapidly clicking links and buttons.
Installation
Add this line to your application's Gemfile:
gem 'onestep'
And then execute:
$ bundle
Or install it yourself as:
$ gem install onestep
Once you've installed the gem, require it's JavaScript assets:
// app/assets/javascripts/application.js
//= require onestep/onestep
Usage
TODO: Write usage instructions here
TODO:
- Write a Heroku hosted Sinatra application which demos the functionality.
- Link to the application from this Readme.
- Make sure that the gem works with tags.
- Consider initializing the jQuery so that it works automatically. Then add
a class the users can attach to optout.
- Specify that the assets must be required after jQuery. I might be able to
add jquery_ujs as a dependancy?
Contributing
- Fork it
- 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