Created
September 11, 2012 14:54
-
-
Save efatsi/3699388 to your computer and use it in GitHub Desktop.
Methods in Seed File?
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
b = create_user("brian@example.com") | |
a = create_user("andy@example.com") | |
def create_user(email, password = "secret") | |
User.create({:email => email, :password => password, :password_confirmation => password}) | |
end | |
rake aborted! | |
undefined method `create_user' for main:Object | |
Tasks: TOP => db:seed | |
(See full trace by running task with --trace) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment