View Source Phoenix.Flash (Phoenix v1.7.2)
Provides shared flash access.
Link to this section Summary
Functions
Gets the key from the map of flash data.
Link to this section Functions
Gets the key from the map of flash data.
examples
Examples
<div id="info"><%= Phoenix.Flash.get(@flash, :info) %></div>
<div id="error"><%= Phoenix.Flash.get(@flash, :error) %></div>