Topic: Devise authenticaion on heroku issue.

Hi, I have an applicaiton using Devise authentication that works on my machine's development and production environments.

But when I deploy to heroku this error happens:



/home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/inflector/methods.rb:113:in `constantize': uninitialized constant User (NameError)
    from /home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/inflector/methods.rb:112:in `each'
    from /home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/inflector/methods.rb:112:in `constantize'
    from /home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/devise-1.1.3/lib/devise/mapping.rb:69:in `to'
    from /home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/devise-1.1.3/lib/devise/mapping.rb:64:in `modules'
    from /home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/devise-1.1.3/lib/devise/mapping.rb:73:in `strategies'
    from /home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/devise-1.1.3/lib/devise.rb:276:in `configure_warden!'
    from /home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/ordered_hash.rb:122:in `each_value'
    from /home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/ordered_hash.rb:122:in `each'
    from /home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/ordered_hash.rb:122:in `each_value'
    from /home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/devise-1.1.3/lib/devise.rb:275:in `configure_warden!'
    from /home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/devise-1.1.3/lib/devise/rails/routes.rb:7:in `finalize!'
    from /home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/railties-3.0.0/lib/rails/application.rb:128:in `reload_routes!'
    from /home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
    from /home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
    from /home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/lazy_load_hooks.rb:43:in `run_load_hooks'
    from /home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/lazy_load_hooks.rb:42:in `each'
    from /home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
    from /home/slugs/309705_f3a8ccb_efd8/mnt/.bundle/gems/ruby/1.8/gems/actionpack-3.0.0/lib/action_controller/base.rb:230
    from /disk1/home/slugs/309705_f3a8ccb_efd8/mnt/app/controllers/application_controller.rb:1

*not full stack trace*

If anyone has any idea on what might be causing this please let me know!
I tried creating a new application, installed devise on it, and deployed on heroku, and same constantize': uninitialized constant User (NameError) error occurs.

I'm using rails 3.0.

Last edited by dfvxc (2010-10-05 15:48:51)