Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed flash message style

  • Loading branch information...
commit d65d6f6f1727af0aacb6bf916052c6ef5482ded4 1 parent 329ad4e
@solgems authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/views/layouts/application.html.erb
View
2  app/views/layouts/application.html.erb
@@ -16,7 +16,7 @@
# <div class="alert alert-success">Welcome to the Sample App!</div>
%>
<% flash.each do |key, value| %>
- <div class="alert alert-<%= key %>"><%= value %></div>
+ <%= content_tag(:div, value, class: "alert alert-#{key}") %>
<% end %>
<%= yield %>
<%= render 'layouts/footer' %>
Please sign in to comment.
Something went wrong with that request. Please try again.