plataformatec/devise — Issue #1538: (v.1.4.9) activeldap gem causes rails 3 generator issues
Author: thoraxe
Created: 2011-12-31 16:53:24+00:00
State: open

To "properly" use the ActiveLdap gem, the railtie must be required:
http://ruby-activeldap.rubyforge.org/activeldap/en/file.rails.html

If the railtie is required in application.rb, the Devise generator fails with an error:
[root@www /var/www/rails/deviseportal]$ rails generate devise admin
error active_ldap [not found]
route devise_for :admins

I had to temporarily comment out the railtie requirement in application.rb for this to work. I'm not sure what the issue is, but I figured I'd report it. Happy to do more debugging if needed.