Created
May 17, 2017 00:34
-
-
Save asterion/8e38a78d8fb299b60553f819813dbae4 to your computer and use it in GitHub Desktop.
seed con imagenes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
admin = Admin.new | |
admin.email = 'admin@example.com' | |
admin.password = 'xxxxxxx' | |
admin.password_confirmation = 'xxxxxxx' | |
admin.image = File.new(open("#{Rails.root}/public/images/pic33.jpg")) | |
admin.save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment