I am working on a Rails app where users must fill out two or more screens to register. The registration data is spread across two or three records in two tables.
Of course, users can bail out before registration is complete. This is detectable as null entries in mandatory columns.
What is the “Rails Way” to clean up these partially complete registrations after some reasonable delay (a few hours)?
In case it makes a difference, I’m deploying on Heroku.
I don’t know if it’s the “rails way”, but I think creating a rake task and running it at regular intervals via a cron job would probably suffice for what you describe. If you’re into testing, you can even test the rake tasks just like any other code.