Ask HN: Preferred way to bootstrap demo data for a user in a Rails web app?
The basic premise here is that my web product focuses on keyword research & analysis. We have a step by step tour system implemented with Guiders.js, but I'd ideally like to walk users through a keyword research report as well on their first login, instead of just the interface.
So the way I'd like to do this is have an example keyword automatically bootstrapped into a user's account when they first login. My initial idea is to create that keyword in an existing account, dump that data into a YML file, then on new user creation, bootstrap that into their account and modify the details of the associated records to be assigned to that new user account (which is really just changing the user_id).
All the gems I'm finding for this revolve around DB seeds and rake tasks. Has anyone done this with an in-model method or anything similar? Any advice to share in regards to starting a new user's account off with some data prepopulated?