plataformatec/devise — Issue #1648: Devise.router_name is nil
Author: alecguintu
Created: 2012-02-15 11:43:35+00:00
State: open

I kinda upgraded to 2.0.1 and when I register, the Devise.router_name is nil.

```
nil is not a symbol
/Users/Lec/.rvm/gems/ruby-1.9.3-p0@surescene/gems/devise-2.0.1/lib/devise/controllers/url_helpers.rb:65:in `_devise_route_context'
/Users/Lec/.rvm/gems/ruby-1.9.3-p0@surescene/gems/devise-2.0.1/lib/devise/controllers/url_helpers.rb:50:in `confirmation_url'
/Users/Lec/Sites/surescene3/app/views/devise/mailer/confirmation_instructions.html.erb:6:in `_app_views_devise_mailer_confirmation_instructions_html_erb___4589409742918287286_2481257540'
```

For now, I added a `config.router_name = :main_app` in the initializers/devise.rb but I'm wondering if that is also a step at [upgrading to 2.0.1](https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.0)