Generating Test Data for Rails Projects
- POST
How often have you created a database for a new Rails application and then sat staring at the empty tables? Often times when building a new application you need sample data to help flesh out the user interface or to show off the application to your customer. Rails provides a convenient method of loading this data via the seeds.rb file, but you still have to create the content for this file. This article will discuss a mostly automated way of generating content for your database.