hooopo/oauth_china — Issue #8: 使用过程中遇到的问题
Author: kingze
Created: 2011-12-23 01:50:08+00:00
State: open

刚刚使用时遇到两个问题，，，

1）Sohu微博出现以下问题：

NoMethodError in MemberController#syncs_new

undefined method `gsub' for nil:NilClass

activesupport (3.1.1) lib/active_support/whiny_nil.rb:48:in `method_missing'
/opt/ruby/lib/ruby/1.9.1/cgi/util.rb:7:in `escape'
oauth (0.4.5) lib/oauth/tokens/request_token.rb:28:in `block in build_authorize_url'
oauth (0.4.5) lib/oauth/tokens/request_token.rb:28:in `each'
oauth (0.4.5) lib/oauth/tokens/request_token.rb:28:in `map'
oauth (0.4.5) lib/oauth/tokens/request_token.rb:28:in `build_authorize_url'
oauth (0.4.5) lib/oauth/tokens/request_token.rb:9:in `authorize_url'
oauth_china (0.4.0) lib/oauth_china.rb:72:in `authorize_url'

2）网易微博出下以下问题：

OAuth::Problem in MemberController#syncs_new

consumer not found

oauth (0.4.5) lib/oauth/consumer.rb:181:in `request'
oauth (0.4.5) lib/oauth/consumer.rb:197:in `token_request'
oauth (0.4.5) lib/oauth/consumer.rb:139:in `get_request_token'
oauth_china (0.4.0) lib/oauth_china.rb:28:in `initialize'
oauth_china (0.4.0) lib/oauth_china/strategies/netease.rb:14:in `initialize'

请问如何解决，谢谢！