Created
June 23, 2012 05:03
-
-
Save jondkinney/2976956 to your computer and use it in GitHub Desktop.
Break out of an iFrame from a controller in Rails and redirect to a relative path
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
render :text => "<html><body><script type='text/javascript' charset='utf-8'>parent.location.href = '/somewhere';</script></body></html>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
It works fine for me with Firefox and Safari but not for Chrome, IE and Opera.
:(