Skip to content

Conversation

lessless
Copy link
Contributor

The idea is to allow to cycle over the flashes in the template

  <body>
    <% flash.each do |name, msg| -%>
      <%= content_tag :div, msg, class: name %>
    <% end -%>

this code will allow to iterate only through data associated with the current request, so maybe it need additional work.

@lessless
Copy link
Contributor Author

p.s. actually this may be totally pointless because of

<% %i(error notice success).each do |type| %>
  <% if flash[type] %>
    <div class="flash-message-<%= type %>"> <%= flash[type] %> </div>
  <% end %>
<% end %>

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) when pulling e22a201 on lessless:master into 975feb8 on lotus:master.

@lessless lessless closed this Dec 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants