Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

twitter_handle for nil:NilClass #8

Open
fousa opened this issue Sep 28, 2010 · 4 comments
Open

twitter_handle for nil:NilClass #8

fousa opened this issue Sep 28, 2010 · 4 comments

Comments

@fousa
Copy link

fousa commented Sep 28, 2010

When coming back from Twitter I always get this error:

undefined method `twitter_handle=' for nil:NilClass

Any idea why?

@MSch
Copy link
Owner

MSch commented Sep 28, 2010

Can you provide the backtrace?

@fousa
Copy link
Author

fousa commented Sep 29, 2010

Here you go!

activesupport (3.0.0) lib/active_support/whiny_nil.rb:48:in method_missing' /Users/jelle/Sites/Forks/devise-twitter/lib/devise/twitter/warden.rb:14:inblock in <top (required)>'
warden_oauth (0.1.1) lib/warden_oauth/strategy.rb:101:in find_user_by_access_token' warden_oauth (0.1.1) lib/warden_oauth/strategy.rb:55:inauthenticate!'
/Users/jelle/Sites/Forks/devise-twitter/lib/devise/twitter/rack.rb:16:in block in <module:Rack>' /Users/jelle/Sites/Forks/devise-twitter/lib/devise/twitter/rack.rb:45:incall'
/Users/jelle/Sites/Forks/devise-twitter/lib/devise/twitter/rack.rb:45:in block in <module:Rack>' actionpack (3.0.0) lib/action_dispatch/routing/mapper.rb:34:incall'
actionpack (3.0.0) lib/action_dispatch/routing/mapper.rb:34:in call' rack-mount (0.6.13) lib/rack/mount/route_set.rb:148:inblock in call'
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:93:in block in recognize' rack-mount (0.6.13) lib/rack/mount/code_generation.rb:68:inoptimized_each'
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:92:in recognize' rack-mount (0.6.13) lib/rack/mount/route_set.rb:139:incall'
actionpack (3.0.0) lib/action_dispatch/routing/route_set.rb:492:in call' haml (3.0.18) lib/sass/plugin/rack.rb:41:incall'
warden (0.10.7) lib/warden/manager.rb:35:in block in call' warden (0.10.7) lib/warden/manager.rb:34:incatch'
warden (0.10.7) lib/warden/manager.rb:34:in call' actionpack (3.0.0) lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
actionpack (3.0.0) lib/action_dispatch/middleware/head.rb:14:in call' rack (1.2.1) lib/rack/methodoverride.rb:24:incall'
actionpack (3.0.0) lib/action_dispatch/middleware/params_parser.rb:21:in call' actionpack (3.0.0) lib/action_dispatch/middleware/flash.rb:182:incall'
actionpack (3.0.0) lib/action_dispatch/middleware/session/abstract_store.rb:149:in call' actionpack (3.0.0) lib/action_dispatch/middleware/cookies.rb:287:incall'
activerecord (3.0.0) lib/active_record/query_cache.rb:32:in block in call' activerecord (3.0.0) lib/active_record/connection_adapters/abstract/query_cache.rb:28:incache'
activerecord (3.0.0) lib/active_record/query_cache.rb:12:in cache' activerecord (3.0.0) lib/active_record/query_cache.rb:31:incall'
activerecord (3.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:355:in call' actionpack (3.0.0) lib/action_dispatch/middleware/callbacks.rb:46:inblock in call'
activesupport (3.0.0) lib/active_support/callbacks.rb:415:in _run_call_callbacks' actionpack (3.0.0) lib/action_dispatch/middleware/callbacks.rb:44:incall'
rack (1.2.1) lib/rack/sendfile.rb:107:in call' actionpack (3.0.0) lib/action_dispatch/middleware/remote_ip.rb:48:incall'
actionpack (3.0.0) lib/action_dispatch/middleware/show_exceptions.rb:46:in call' railties (3.0.0) lib/rails/rack/logger.rb:13:incall'
rack (1.2.1) lib/rack/runtime.rb:17:in call' activesupport (3.0.0) lib/active_support/cache/strategy/local_cache.rb:72:incall'
rack (1.2.1) lib/rack/lock.rb:11:in block in call' <internal:prelude>:10:insynchronize'
rack (1.2.1) lib/rack/lock.rb:11:in call' actionpack (3.0.0) lib/action_dispatch/middleware/static.rb:30:incall'
railties (3.0.0) lib/rails/application.rb:168:in call' railties (3.0.0) lib/rails/application.rb:77:inmethod_missing'
railties (3.0.0) lib/rails/rack/log_tailer.rb:14:in call' rack (1.2.1) lib/rack/content_length.rb:13:incall'
rack (1.2.1) lib/rack/handler/webrick.rb:52:in service' /Users/jelle/.rvm/rubies/ruby-1.9.2-preview3/lib/ruby/1.9.1/webrick/httpserver.rb:111:inservice'
/Users/jelle/.rvm/rubies/ruby-1.9.2-preview3/lib/ruby/1.9.1/webrick/httpserver.rb:70:in run' /Users/jelle/.rvm/rubies/ruby-1.9.2-preview3/lib/ruby/1.9.1/webrick/server.rb:183:inblock in start_thread'

@MSch
Copy link
Owner

MSch commented Sep 29, 2010

Looks like you are using the connect url when you should be using the signup url?

@htapal
Copy link

htapal commented Feb 1, 2011

I bet this is due to this issue I just created https://github.com/MSch/devise-twitter/issues/#issue/18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants