How (and whether) to populate rails application with initial data
Try a rake task. For example: Create the file /lib/tasks/bootstrap.rake In the file, add a task to create your default user: namespace :bootstrap do desc “Add the default user” task :default_user => :environment do User.create( :name => ‘default’, :password => ‘password’ ) end desc “Create the default comment” task :default_comment => :environment do Comment.create( :title … Read more