Created
October 24, 2012 07:03
-
-
Save beneggett/3944474 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
## Create User | |
User.create! :first_name => "Test", :last_name => "User", :email => "[email protected]", :password => "password123"# add whatever other parameters you have here | |
# if you wanted to make user an admin (which I'm assuming you do if it's in a seed file) do: | |
u = User.create! :first_name => "Test", :last_name => "User", :email => "[email protected]", :password => "password123" | |
u.spree_roles << Spree::Role.find_or_create_by_name("admin") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment