plataformatec/devise — Issue #1548: undefined method `ref' for ActiveSupport::Dependencies:Module (NoMethodError)
Author: akeelahmedqureshi
Created: 2012-01-04 13:58:44+00:00
State: open

Hello

i am trying to override devise session controller it's gives error

env:

rails 2.3.8
ruby 1.8.7
warden 1.0.6
devise 1.1.5

routes setting

map.devise_for :users, :path_names => { :sign_in => '/login', :sign_out => '/logout' }
map.new_user_session 'login', :controller => 'users/sessions', :action => 'new', :conditions => { :method => :get }
map.user_session 'login', :controller => 'users/sessions', :action => 'create', :conditions => { :method => :post }
map.destroy_user_session 'logout', :controller => 'users/sessions', :action => 'destroy', :conditions => { :method => :get }
map.new_user_registration 'sign_up', :controller => 'users/registrations', :action => 'new', :conditions => { :method => :get }
map.user_registration 'sign_up', :controller => 'users/registrations', :action => 'create', :conditions => { :method => :post }
map.new_user_password '/password/new', :controller => 'users/passwords', :action => 'new', :conditions => { :method => :get }

gives error:--

cis@CISM121:~/ake/inex$ ruby script/server
=> Booting WEBrick
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
/usr/lib/ruby/gems/1.8/gems/devise-1.1.5/lib/devise.rb:193:in `mailer=': undefined method `ref' for ActiveSupport::Dependencies:Module (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/devise-1.1.5/lib/devise.rb:195
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/rails/gem_dependency.rb:215:in `load'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:307:in `load_gems'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:307:in `each'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:307:in `load_gems'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:164:in `process'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in `send'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in `run'
from /home/cis/ake/inex/config/environment.rb:46
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/commands/server.rb:84
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from script/server:3

please help me and let me know if you need anything else