I've setup a rails site on a server running Windows Server 2008 + IIS 7.0. When navigating to the site the browser gets caught in a redirect loop causes by this code
def authorize
if not signed_in?
previous_url = request.fullpath
redirect_to signin_path, :notice => "Please sign in to access this page"
end
end
I've started it from the console (rails s -e production
) and had no issues. I've also set it up on my development machine (Windows 7 + IIS 7.5) and not had issues. At this point I'm not sure where to start poking around.
Does your server give you an error log? That may be a good place to start. (For example on linux if I issue this command in terminal:
rails server -e dev2 --port 3010
it will spit out all errors and a lot of other things, like sql queries, to the terminal window).