Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task :users => :environment do
- %w[ bob rob ].map do |name|
- begin
- user = User.new email: "#{ name }@testing.com",
- password: 'testing',
- password_confirmation: 'testing'
- user.save
- rescue ActionView::Template::Error
- puts "There was a problem creating #{ name }!"
- end
- user.save
- user.confirm!
- end
- end
Add Comment
Please, Sign In to add comment