NoMethodError: undefined method `request' for main:Object #384

Open
Hareramrai opened this Issue Nov 29, 2013 · 0 comments

Comments

Projects
None yet
1 participant

Hi ,

I am unable to run it.

>> Authlogic::Session::Base.controller = Authlogic::ControllerAdapters::RailsAdapter.new(self)
=> #<Authlogic::ControllerAdapters::RailsAdapter:0x000000050cd6b8 @controller=main>
>> o = UserSession.new us
=> #<UserSession: {:login=>"admin@ams.com", :password=>"<protected>"}>
>> o.save
  User Load (170.4ms)   SELECT * FROM "users" WHERE (LOWER("users".login) = 'admin@ams.com') LIMIT 1
  User Load (170.7ms)   explain analyze SELECT * FROM "users" WHERE (LOWER("users".login) = 'admin@ams.com') LIMIT 1
nil
NoMethodError: undefined method `request' for main:Object
    from /app/vendor/bundle/ruby/1.9.1/gems/authlogic-2.1.9/lib/authlogic/controller_adapters/abstract_adapter.rb:34:in `request'
    from /app/vendor/bundle/ruby/1.9.1/gems/authlogic-2.1.9/lib/authlogic/session/magic_columns.rb:61:in `update_info'
    from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:178:in `evaluate_method'
    from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:166:in `call'
    from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:93:in `block in run'
    from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:92:in `each'
    from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:92:in `run'
    from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:276:in `run_callbacks'
    from /app/vendor/bundle/ruby/1.9.1/gems/authlogic-2.1.9/lib/authlogic/session/callbacks.rb:87:in `before_save'
    from /app/vendor/bundle/ruby/1.9.1/gems/authlogic-2.1.9/lib/authlogic/session/existence.rb:68:in `save'
    from (irb):8
    from /app/bin/irb:18:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment