Skip to content

Instantly share code, notes, and snippets.

@efatsi
Created September 11, 2012 14:54
Show Gist options
  • Save efatsi/3699388 to your computer and use it in GitHub Desktop.
Save efatsi/3699388 to your computer and use it in GitHub Desktop.
Methods in Seed File?
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