我在運行Windows Server 2008 + IIS 7.0的服務器上安裝了一個rails站點。當此代碼瀏覽該網站,瀏覽器被重定向循環的原因陷入Rails,Helicon Zoo和IIS身份驗證重定向循環
def authorize
if not signed_in?
previous_url = request.fullpath
redirect_to signin_path, :notice => "Please sign in to access this page"
end
end
我從控制檯(rails s -e production
)開始,並沒有遇到任何問題。我也在我的開發機器上安裝了它(Windows 7 + IIS 7.5),並沒有問題。在這一點上,我不知道該從哪裏開始探索。
如果signin_path未從您的授權過濾器中排除,它也會嘗試重定向。 – Unixmonkey
是。除了在遠程服務器的IIS上,該站點運行良好。 –