Created
July 30, 2009 18:12
-
-
Save spariev/158820 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def handle_xls_links | |
if params[:xls_link] | |
uri = request.request_uri | |
uri.gsub!(/[\?\&]xls_link=true/,'') | |
resp = %Q{ | |
<html> | |
<head> | |
<META HTTP-EQUIV="Refresh" | |
CONTENT="0; URL=#{uri}"> | |
</head> | |
<body> | |
<div style="text-align:center;"> | |
<h3>You will be redirected to the requested page soon.</h3> | |
<h3>If it doesn't happen, please click <a href="#{uri}">this link</a></h3></div> | |
</body> | |
<html> | |
} | |
render :text => resp | |
return false | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment