Platinum Partner

Helper To Display Rails Flash Messages

A simple code snippet for displaying your flash[:warning] = "Warning Message" messages in rails.


def flash_helper
  
    f_names = [:notice, :warning, :message]
    fl = ''
    
    for name in f_names
      if flash[name]
        fl = fl + "
#{flash[name]}
" end flash[name] = nil; end return fl 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}}