Created
November 24, 2010 03:05
Revisions
-
gamesthatgive created this gist
Nov 24, 2010 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ 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};