If this is your seeds.db file, why are you outputting strings?
puts 'ROLES'
puts 'DEFAULT USERS'
puts 'user: ' << user.name
seeds.rb
is the same as rake tasks, models & controllers - they don't render anything directly to the user
Although we'd need to see more of your code, I'd do this:
YAML.load(ENV['ROLES']).each do |role|
Role.find_or_create_by_name(role)
puts 'role: ' << role
end
user = User.find_or_create_by_email :name => ENV['ADMIN_NAME'], :email => ENV['ADMIN_EMAIL'], :password => ENV['ADMIN_PASSWORD'], :password_confirmation => ENV['ADMIN_PASSWORD']
user.add_role :admin #-> need to see your method
If you're looking to make your seeds.rb file readable, you should use comments to split it up