#97 ✓resolved
Jose Cortinas

Authlogic unable to save a new session

Reported by Jose Cortinas | April 24th, 2009 @ 11:55 AM

I started a new project, and I've configure Authlogic to pretty much exactly the specs in the tutorial on github. I've gotten it working before with no problems, but this time around, I'm getting an error every time the login for on the new action submits to the create action.

ArgumentError (wrong number of arguments (3 for 2)):
  authlogic (2.0.9) [v] lib/authlogic/acts_as_authentic/session_maintenance.rb:62:in `save_without_session_maintenance'
  authlogic (2.0.9) [v] lib/authlogic/session/callbacks.rb:83:in `save_record'
  authlogic (2.0.9) [v] lib/authlogic/session/priority_record.rb:30:in `save_record'
  authlogic (2.0.9) [v] lib/authlogic/session/existence.rb:71:in `save'
  app/controllers/user_sessions_controller.rb:10:in `create'
  C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
  C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
  C:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
  C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
  C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
  C:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
  C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
  C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
  C:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
  C:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'

Rendered rescues/_trace (422.0ms)
Rendered rescues/_request_and_response (0.0ms)
Rendering rescues/layout (internal_server_error)

I've looked through all of my code and can not find a single reason for this to be happening. I've removed all other version of Authlogic and now only user 2.0.9. Any ideas? Thank you.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.

People watching this ticket