joel/omniauth-windowslive — Issue #1: `add_camelization': undefined method `[]=' for nil:NilClass
Author: davividal
Created: 2012-02-25 19:05:36+00:00
State: open

I seted'up this gem on my rails app like so:

```ruby
# Gemfile
gem 'devise'
gem 'omniauth'
gem 'oa-openid', :require => 'omniauth/openid'
gem 'omniauth-windowslive'
```

```ruby
#config/devise.rb
config.omniauth :windowslive, 'CLIENT_ID', 'SECRET', :scope => 'wl.basic'
```

But when I try to start server (rails server), I got this backtrace:

What am I missing?

```
/home/davi/.rvm/gems/ruby-1.9.3-head/gems/omniauth-1.0.2/lib/omniauth.rb:88:in `add_camelization': undefined method `[]=' for nil:NilClass (NoMethodError)
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/omniauth-oauth2-1.0.0/lib/omniauth/strategies/oauth2.rb:94:in `'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `load_dependency'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/omniauth-windowslive-0.0.8/lib/omniauth/strategies/windowslive.rb:1:in `'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `load_dependency'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/omniauth-windowslive-0.0.8/lib/omniauth/windowslive.rb:2:in `'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `load_dependency'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/omniauth-windowslive-0.0.8/lib/omniauth-windowslive.rb:1:in `'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `block in require'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `require'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler.rb:122:in `require'
from /home/davi/Documents/dev/eiko/config/application.rb:13:in `'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/railties-3.1.0/lib/rails/commands.rb:52:in `require'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/railties-3.1.0/lib/rails/commands.rb:52:in `block in '
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/railties-3.1.0/lib/rails/commands.rb:49:in `tap'
from /home/davi/.rvm/gems/ruby-1.9.3-head/gems/railties-3.1.0/lib/rails/commands.rb:49:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'
```