Over a million developers have joined DZone.

Rails Notice/Warning Flash Message

·
Somewhat lame, but handy nonetheless.


<% if flash[:warning] or flash[:notice] %>
  
class="warning"<% end %>> <%= flash[:warning] || flash[:notice] %>
<% end %>
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}