Phoenix.Flash
SourceProvides shared flash access.
Summary
- get(flash, key)
Gets the key from the map of flash data.
Functions
Functions
get(flash, key)Source
Gets the key from the map of flash data.
Examples
<div id="info"><%= Phoenix.Flash.get(@flash, :info) %></div> <div id="error"><%= Phoenix.Flash.get(@flash, :error) %></div>
© 2014 Chris McCord
Licensed under the MIT License.
https://phoenix.hexdocs.pm/Phoenix.Flash.html