ubermajestix/grep_routes — Issue #2: Devise compatibility: undefined method `devise_for' 
Author: ruckus
Created: 2012-02-24 21:42:21+00:00
State: open

I am using Devise for authentication and my `routes.rb` has a line:

`devise_for :users, :controllers => { :sessions => "sessions" }`

When I invoke `grep_routes` I receive the following error:

```
/Users/codyc/.rvm/gems/ruby-1.9.2-p290-patched@vinorails31/gems/grep_routes-0.0.5/lib/grep_routes.rb:94:in `eval': undefined method `devise_for' for # (NoMethodError)
from /Users/codyc/.rvm/gems/ruby-1.9.2-p290-patched@vinorails31/gems/actionpack-3.1.1/lib/action_dispatch/routing/route_set.rb:258:in `instance_exec'
from /Users/codyc/.rvm/gems/ruby-1.9.2-p290-patched@vinorails31/gems/actionpack-3.1.1/lib/action_dispatch/routing/route_set.rb:258:in `eval_block'
from /Users/codyc/.rvm/gems/ruby-1.9.2-p290-patched@vinorails31/gems/actionpack-3.1.1/lib/action_dispatch/routing/route_set.rb:235:in `draw'
from (eval):1:in `eval_routes'
from /Users/codyc/.rvm/gems/ruby-1.9.2-p290-patched@vinorails31/gems/grep_routes-0.0.5/lib/grep_routes.rb:94:in `eval'
from /Users/codyc/.rvm/gems/ruby-1.9.2-p290-patched@vinorails31/gems/grep_routes-0.0.5/lib/grep_routes.rb:94:in `eval_routes'
from /Users/codyc/.rvm/gems/ruby-1.9.2-p290-patched@vinorails31/gems/grep_routes-0.0.5/bin/grep_routes:9:in `'
from /Users/codyc/.rvm/gems/ruby-1.9.2-p290-patched@vinorails31/bin/grep_routes:19:in `load'
from /Users/codyc/.rvm/gems/ruby-1.9.2-p290-patched@vinorails31/bin/grep_routes:19:in `

'
```