Created
August 5, 2009 22:08
-
-
Save tammersaleh/163006 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 require_no_user | |
| if current_user | |
| store_location | |
| flash[:notice] = "You must be logged out to access this page" | |
| redirect_to root_url | |
| return false | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment