Started GET “/users/sign_in” for 127.0.0.1 at 2011-11-30 16:56:13
+0530
Processing by UsersController#show as HTML
Parameters: {“id”=>“sign_in”}
Completed 401 Unauthorized in 1ms
##########and in browser#######
The page isn’t redirecting properly
Firefox has detected that the server is redirecting the
request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to
accept
cookies.
Started GET “/users/sign_in” for 127.0.0.1 at 2011-11-30 16:56:13
+0530
Processing by UsersController#show as HTML
Parameters: {“id”=>“sign_in”}
You have a problem with your routes. It is interpreting sign_in as an
id and going to the show action. You may have a route for show/id
before sign_in.
Try
rake routes
in a terminal to see what your routes are.
Show us your routes.rb and the result of rake routes if you cannot work
it out.
id and going to the show action. You may have a route for show/id
before sign_in.
Try
rake routes
in a terminal to see what your routes are.
The browser says it’s not redirecting properly so I think another
probable
cause
is requiring a logged in user for the action that shows the login page.
You most
probably have a before_filter that checks if the user is logged in, and
if
not,
redirects to the log in page.
It is good practice to describe the solution in case anyone finds this
thread in the future. It is very frustrating to find someone with the
same problem as yourself who has found a solution but has not
published it.