Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on login with sorcery. #24

Open
lephyrius opened this issue Sep 22, 2012 · 2 comments
Open

Error on login with sorcery. #24

lephyrius opened this issue Sep 22, 2012 · 2 comments

Comments

@lephyrius
Copy link

I get this error when I try to login with sorcery when using this gem:

Completed 500 Internal Server Error in 30ms

ArgumentError (wrong number of arguments (2 for 1)):
app/controllers/session_controller.rb:14:in `create'

Rendered .rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms)
Rendered .rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
Rendered .rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (24.1ms)

On the line in the app/controllers/session_controller.rb:14:in 'create' is this bit of code:
'user = login params[:username], params[:password], params[:remember_me]'

Is this gem not compatible with Rails 3.2.8 ?

@sdsykes
Copy link
Owner

sdsykes commented Sep 22, 2012

It may not be fully compatible. I'm willing to accept patches, or grant committer rights to anyone who would wish to test with the latest rails versions.

@rderoldan1
Copy link

I get the same error when I used dinamic finders, example

Sesion.find_by_token("token")
=> ArgumentError - wrong number of arguments (2 for 1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants