Skip to content

Instantly share code, notes, and snippets.

@Lightpower
Created July 30, 2013 21:35
Show Gist options
  • Save Lightpower/6117216 to your computer and use it in GitHub Desktop.
Save Lightpower/6117216 to your computer and use it in GitHub Desktop.
[46, 55] in /Users/bva/work/fw2-users-and-groups-api/db/seeds.rb
46
47 puts "Created client '#{mobile_client.display_name}' with ID '#{mobile_client.client_id}' and secret '#{mobile_client.secret}' (scopes are '#{mobile_client.scope.join("', '")}')"
48
49 debugger
50
=> 51 user_confirmed = FactoryGirl.create(:user)
52 user_unconfirmed = FactoryGirl.create(:user, confirmed_at: nil, confirmation_token: 'Confirm-me')
53
54 puts "Confirmed user: #{user_confirmed.email}:demodemo1234"
55 puts "Unconfirmed user: #{user_unconfirmed.email}:demodemo1234 (confirmation token '#{user_unconfirmed.confirmation_token}')"
(rdb:1) c
rake aborted!
Connection refused - connect(2)
/Users/bva/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/smtp.rb:540:in `initialize'
/Users/bva/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/smtp.rb:540:in `open'
/Users/bva/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/smtp.rb:540:in `tcp_socket'
/Users/bva/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/smtp.rb:549:in `block in do_start'
/Users/bva/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/timeout.rb:69:in `timeout'
/Users/bva/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/timeout.rb:100:in `timeout'
/Users/bva/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/smtp.rb:549:in `do_start'
/Users/bva/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/smtp.rb:519:in `start'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/mail-2.4.4/lib/mail/network/delivery_methods/smtp.rb:144:in `deliver!'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/mail-2.4.4/lib/mail/message.rb:2034:in `do_delivery'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/mail-2.4.4/lib/mail/message.rb:229:in `block in deliver'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/actionmailer-3.2.12/lib/action_mailer/base.rb:415:in `block in deliver_mail'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activesupport-3.2.12/lib/active_support/notifications.rb:123:in `block in instrument'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activesupport-3.2.12/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activesupport-3.2.12/lib/active_support/notifications.rb:123:in `instrument'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/actionmailer-3.2.12/lib/action_mailer/base.rb:413:in `deliver_mail'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/mail-2.4.4/lib/mail/message.rb:229:in `deliver'
/Users/bva/work/fw2-users-and-groups-api/app/models/user.rb:78:in `send_devise_notification'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/devise-2.2.4/lib/devise/models/confirmable.rb:147:in `send_on_create_confirmation_instructions'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:416:in `_run__1030240026250051542__create__139503015071050359__callbacks'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:385:in `_run_create_callbacks'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activerecord-3.2.12/lib/active_record/callbacks.rb:268:in `create'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activerecord-3.2.12/lib/active_record/persistence.rb:348:in `create_or_update'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activerecord-3.2.12/lib/active_record/callbacks.rb:264:in `block in create_or_update'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:414:in `_run__1030240026250051542__save__139503015071050359__callbacks'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activerecord-3.2.12/lib/active_record/callbacks.rb:264:in `create_or_update'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activerecord-3.2.12/lib/active_record/persistence.rb:104:in `save!'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activerecord-3.2.12/lib/active_record/validations.rb:56:in `save!'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activerecord-3.2.12/lib/active_record/attribute_methods/dirty.rb:33:in `save!'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:in `block in save!'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activerecord-3.2.12/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activerecord-3.2.12/lib/active_record/transactions.rb:208:in `transaction'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activerecord-3.2.12/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:in `save!'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/factory_girl-4.2.0/lib/factory_girl/configuration.rb:14:in `block in initialize'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/factory_girl-4.2.0/lib/factory_girl/evaluation.rb:15:in `[]'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/factory_girl-4.2.0/lib/factory_girl/evaluation.rb:15:in `create'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/factory_girl-4.2.0/lib/factory_girl/strategy/create.rb:12:in `block in result'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/factory_girl-4.2.0/lib/factory_girl/strategy/create.rb:9:in `tap'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/factory_girl-4.2.0/lib/factory_girl/strategy/create.rb:9:in `result'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/factory_girl-4.2.0/lib/factory_girl/factory.rb:42:in `run'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/factory_girl-4.2.0/lib/factory_girl/factory_runner.rb:23:in `block in run'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activesupport-3.2.12/lib/active_support/notifications.rb:125:in `instrument'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/factory_girl-4.2.0/lib/factory_girl/factory_runner.rb:22:in `run'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/factory_girl-4.2.0/lib/factory_girl/strategy_syntax_method_registrar.rb:19:in `block in define_singular_strategy_method'
/Users/bva/work/fw2-users-and-groups-api/db/seeds.rb:52:in `<top (required)>'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:245:in `load'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:245:in `block in load'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:245:in `load'
/Users/bva/work/fw2-users-and-groups-api/Rakefile:53:in `load_seed'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/activerecord-3.2.12/lib/active_record/railties/databases.rake:333:in `block (2 levels) in <top (required)>'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/Users/bva/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/rake-10.1.0/lib/rake/application.rb:149:in `invoke_task'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/rake-10.1.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/rake-10.1.0/lib/rake/application.rb:106:in `each'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/rake-10.1.0/lib/rake/application.rb:106:in `block in top_level'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/rake-10.1.0/lib/rake/application.rb:115:in `run_with_threads'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/rake-10.1.0/lib/rake/application.rb:100:in `top_level'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/rake-10.1.0/lib/rake/application.rb:78:in `block in run'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/gems/rake-10.1.0/bin/rake:33:in `<top (required)>'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/bin/rake:23:in `load'
/Users/bva/.rvm/gems/ruby-1.9.3-p448@fw2-users-and-groups-api/bin/rake:23:in `<main>'
Tasks: TOP => db:seed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment