Skip to content

Instantly share code, notes, and snippets.

@nicolasiensen
Created January 6, 2015 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicolasiensen/80a415ecb4bcdf72cc98 to your computer and use it in GitHub Desktop.
Save nicolasiensen/80a415ecb4bcdf72cc98 to your computer and use it in GitHub Desktop.
Failure/Error: GithubProfile.for_username('mdeiters')
NoMethodError:
undefined method `keys' for nil:NilClass
# /home/vagrant/.rvm/gems/ruby-2.1.5@coderwall/gems/activemodel-3.2.21/lib/active_model/mass_assignment_security/sanitizer.rb:19:in `debug_protected_attribute_removal'
# /home/vagrant/.rvm/gems/ruby-2.1.5@coderwall/gems/activemodel-3.2.21/lib/active_model/mass_assignment_security/sanitizer.rb:12:in `sanitize'
# /home/vagrant/.rvm/gems/ruby-2.1.5@coderwall/gems/activemodel-3.2.21/lib/active_model/mass_assignment_security.rb:230:in `sanitize_for_mass_assignment'
# /home/vagrant/.rvm/gems/ruby-2.1.5@coderwall/gems/mongoid-3.1.6/lib/mongoid/attributes/processing.rb:25:in `block in process_attributes'
# /home/vagrant/.rvm/gems/ruby-2.1.5@coderwall/gems/mongoid-3.1.6/lib/mongoid/attributes/processing.rb:193:in `with_mass_assignment'
# /home/vagrant/.rvm/gems/ruby-2.1.5@coderwall/gems/mongoid-3.1.6/lib/mongoid/attributes/processing.rb:22:in `process_attributes'
# /home/vagrant/.rvm/gems/ruby-2.1.5@coderwall/gems/mongoid-3.1.6/lib/mongoid/document.rb:94:in `block in initialize'
# /home/vagrant/.rvm/gems/ruby-2.1.5@coderwall/gems/mongoid-3.1.6/lib/mongoid/threaded/lifecycle.rb:84:in `_building'
# /home/vagrant/.rvm/gems/ruby-2.1.5@coderwall/gems/mongoid-3.1.6/lib/mongoid/document.rb:89:in `initialize'
# ./app/models/github_repo.rb:51:in `new'
# ./app/models/github_repo.rb:51:in `refresh!'
# ./app/models/github_repo.rb:29:in `block in for_owner_and_name'
# ./app/models/github_repo.rb:26:in `tap'
# ./app/models/github_repo.rb:26:in `for_owner_and_name'
# ./app/models/github_profile.rb:81:in `block in refresh!'
# ./app/models/github_profile.rb:79:in `map'
# ./app/models/github_profile.rb:79:in `refresh!'
# ./app/models/github_profile.rb:29:in `block in for_username'
# ./app/models/github_profile.rb:26:in `tap'
# ./app/models/github_profile.rb:26:in `for_username'
# ./spec/models/github_profile_spec.rb:30:in `block (4 levels) in <top (required)>'
# /home/vagrant/.rvm/gems/ruby-2.1.5@coderwall/gems/vcr-2.9.2/lib/vcr/util/variable_args_block_caller.rb:9:in `call'
# /home/vagrant/.rvm/gems/ruby-2.1.5@coderwall/gems/vcr-2.9.2/lib/vcr/util/variable_args_block_caller.rb:9:in `call_block'
# /home/vagrant/.rvm/gems/ruby-2.1.5@coderwall/gems/vcr-2.9.2/lib/vcr.rb:182:in `use_cassette'
# ./spec/models/github_profile_spec.rb:29:in `block (3 levels) in <top (required)>'
# ./spec/models/github_profile_spec.rb:35:in `block (3 levels) in <top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment