I am using devise and cancan gems. When I sign_in I get redirect back to sign_in page -
here log
started post "/users/sign_in" 127.0.0.1 @ 2013-05-02 09:57:19 -0400 processing devise::sessionscontroller#create html parameters: {"utf8"=>"✓", "authenticity_token"=>"abc=", "user"=>{"email"=>"xyz@abc.com", "password"=>"[filtered]", "remember_me"=>"0"}, "commit"=>"sign in"} user load (0.1ms) select "users".* "users" "users"."email" = 'xyz@abc.com' limit 1 completed 401 unauthorized in 9ms processing devise::sessionscontroller#new html parameters: {"utf8"=>"✓", "authenticity_token"=>"xyz=", "user"=>{"email"=>"xyz@abc.com", "password"=>"[filtered]", "remember_me"=>"0"}, "commit"=>"sign in"} rendered /users/nitsingh/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.1.3/app/views/devise/shared/_links.erb (0.6ms) rendered /users/nitsingh/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.1.3/app/views/devise/sessions/new.html.erb within layouts/application
Comments
Post a Comment