Created
December 29, 2008 20:29
-
-
Save teamon/41376 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
class FlashTest < Application | |
def index | |
render | |
end | |
def with_hash | |
redirect "/flash_test", :message => {:error => "Some error"} | |
end | |
def with_string | |
redirect "/flash_test", :message => "Success" | |
end | |
def with_other | |
redirect "/flash_test", :message => User | |
end | |
def no_redirect | |
message[:notice] = "Static message" | |
render :index | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment