
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
-
Jose Cortinas April 24th, 2009 @ 12:01 PM
I'm also getting this error when calling current_user anywhere in my application, my current_user method is exactly the same as the one defined in the tutorial. The error eventually goes back to save_without_session_maintenance again.
-
Ben Johnson April 24th, 2009 @ 01:20 PM
- State changed from new to open
Update authlogic, this might fix the problem, I released a newer version.
-
Jose Cortinas April 24th, 2009 @ 02:56 PM
I found out specifically what was giving me the problem, I was using the betternestedset plugin, and having acts_as_authenticated and acts_as_nested_set on the same user model. When acts_as_nested_set was commented out the problem did not pop up.
-
-
Ben Johnson May 4th, 2009 @ 12:31 AM
- State changed from open to resolved
Ok thanks for letting me know. Sometimes other plugins can change behavior and cause problems.
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.
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.