Skip to content

Instantly share code, notes, and snippets.

@teamon
Created December 29, 2008 20:29
Show Gist options
  • Save teamon/41376 to your computer and use it in GitHub Desktop.
Save teamon/41376 to your computer and use it in GitHub Desktop.
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