How does Stack Overflow auto save drafts of this form? I presume AJAX. Is there a rails way or gem to use this functionality?
Also, is it actually a separate drafts model or is the form auto created and then from there on out the edit action is being used?
I know I’m asking specifically about Stack Overflow’s usage, but, generally speaking.
You can use Sisyphus.js or Garlic.js. While StackOverflow uses AJAX, they use HTML5 localStorage to save form data locally.
Rails gems: garlicjs-rails, sisyphus-rails.