jQuery autosave plugin for rails
Add autosave.js to your app/assets/javascripts directory
Then wherever you call your form, most like in a js.erb file among your views you can call $(#myForm).autosave(url, options) -url is your form method -options is well, optional.