This sample app demonstrates how to use the populator and faker gems to create simple rake tasks that act as "factories" for generating representative database data. You can then use this data to populate objects in Salesforce/Force.com.
For more information, please read Generating and Loading Representative Test Data for Salesforce and Force.com Orgs.