Skip to content

Instantly share code, notes, and snippets.

@jathayde
Created May 28, 2010 04:09
Show Gist options
  • Save jathayde/416736 to your computer and use it in GitHub Desktop.
Save jathayde/416736 to your computer and use it in GitHub Desktop.
Soho:snack-bar jathayde$ rake db:seed --trace
(in /Users/jathayde/Sites/snack-bar)
** Invoke db:seed (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:seed
"Created 3 roles"
"Created 3 users with roles"
rake aborted!
undefined method `name' for nil:NilClass
On line #1 of app/views/registration_mailer/admin_notice.text.plain.erb
1: A new account has been registered by <%= @account.primary_member.name %>
2:
3: Details can be found at <%= account_url(@account) %>
app/views/registration_mailer/admin_notice.text.plain.erb:1
app/models/account.rb:57:in `send_admin_notice'
db/seeds.rb:42
rake (0.8.7) lib/rake.rb:636:in `call'
rake (0.8.7) lib/rake.rb:636:in `execute'
rake (0.8.7) lib/rake.rb:631:in `each'
rake (0.8.7) lib/rake.rb:631:in `execute'
rake (0.8.7) lib/rake.rb:597:in `invoke_with_call_chain'
/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
rake (0.8.7) lib/rake.rb:590:in `invoke_with_call_chain'
rake (0.8.7) lib/rake.rb:583:in `invoke'
rake (0.8.7) lib/rake.rb:2051:in `invoke_task'
rake (0.8.7) lib/rake.rb:2029:in `top_level'
rake (0.8.7) lib/rake.rb:2029:in `each'
rake (0.8.7) lib/rake.rb:2029:in `top_level'
rake (0.8.7) lib/rake.rb:2068:in `standard_exception_handling'
rake (0.8.7) lib/rake.rb:2023:in `top_level'
rake (0.8.7) lib/rake.rb:2001:in `run'
rake (0.8.7) lib/rake.rb:2068:in `standard_exception_handling'
rake (0.8.7) lib/rake.rb:1998:in `run'
rake (0.8.7) bin/rake:31
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19
Soho:snack-bar jathayde$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment