plataformatec/devise — Issue #1605: devise.rb:3: uninitialized constant Devise (NameError)
Author: marclipovsky
Created: 2012-01-27 12:39:19+00:00
State: open

When I run ```rails generate devise User``` I'm getting this:

```
app:rails generate devise User
/Users/marclipovsky/Sites/Volunteer/app/config/initializers/devise.rb:3: uninitialized constant Devise (NameError)
from /Library/Ruby/Gems/1.8/gems/railties-3.0.9/lib/rails/engine.rb:201
from /Library/Ruby/Gems/1.8/gems/railties-3.0.9/lib/rails/engine.rb:200:in `each'
from /Library/Ruby/Gems/1.8/gems/railties-3.0.9/lib/rails/engine.rb:200
from /Library/Ruby/Gems/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:25:in `instance_exec'
from /Library/Ruby/Gems/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:25:in `run'
from /Library/Ruby/Gems/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:50:in `run_initializers'
from /Library/Ruby/Gems/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:49:in `each'
from /Library/Ruby/Gems/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:49:in `run_initializers'
from /Library/Ruby/Gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:134:in `initialize!'
from /Library/Ruby/Gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:77:in `send'
from /Library/Ruby/Gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:77:in `method_missing'
from /Users/marclipovsky/Sites/Volunteer/app/config/environment.rb:5
from /Library/Ruby/Gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:103:in `require'
from /Library/Ruby/Gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:103:in `require_environment!'
from /Library/Ruby/Gems/1.8/gems/railties-3.0.9/lib/rails/commands.rb:16
from script/rails:6:in `require'
from script/rails:6
```
Not sure where to look to get this working properly. This is line 5 of my environment.rb file; ```App::Application.initialize!``` . Any thoughts?