Windows Server 2008 + IIS 7.0 を実行しているサーバーに Rails サイトをセットアップしました。サイトに移動すると、このコードが原因でブラウザがリダイレクト ループに陥る
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) でもセットアップしましたが、問題はありませんでした。この時点で、どこから突っ込んでいいのかわかりません。