Created
November 24, 2010 03:05
-
-
Save gamesthatgive/713029 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 top_redirect_to(path) | |
render :layout => false, :partial => "shared/top_redirect", :object => path | |
end | |
%html | |
%head | |
%noscript | |
%meta{ "http-equiv" => "refresh", :content => "0;url=#{top_redirect}" }/ | |
%meta{ "http-equiv" => "window-target", :content => "_top" }/ | |
:javascript | |
window.top.location.href = #{top_redirect.to_json}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment