Platinum Partner

Rails Notice/Warning Flash Message

Somewhat lame, but handy nonetheless.


<% if flash[:warning] or flash[:notice] %>
  
class="warning"<% end %>> <%= flash[:warning] || flash[:notice] %>
<% end %>
{{ tag }}, {{tag}},

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

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}