Created
July 31, 2011 07:42
-
-
Save HungYuHei/1116541 to your computer and use it in GitHub Desktop.
rails返回上一页
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
request.env['HTTP_REFERER'] | |
request.referer | |
<%= link_to_function "返回上一页", "history.go(-1)" %> | |
<%= link_to "Back", :back %> | |
redirect_to :back |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment