plataformatec/devise — Issue #1615: devise_for block deprecation warning confuses
Author: dznz
Created: 2012-02-01 04:49:40+00:00
State: open

The deprecation warning in `lib/devise/rails/routes.rb` that warns that passing a block to `devise_for` is deprecated doesn't clearly state that a `devise_for` instruction will still be necessary, alongside a `devise_scope` block.

I had assumed, wrongly I suppose, that the presence of a `devise_scope` would remove the need for a `devise_for` but that doesn't seem to be the case. It took a few hours to work out why the devise controller methods were being reported as missing.

I'm still not sure I've understood how the routing is set up, but I figure if I could make that assumption then others might too. Perhaps the warning should be reworded, or a warning issued if `devise_for` is never called in `config/routes.rb`?