Skip to content

Conversation

@djs070
Copy link
Contributor

@djs070 djs070 commented Aug 30, 2016

Updated to use boostrap 4 alpha 3.1

<% flash.each do |name, msg| %>
<% if msg.is_a?(String) %>
<div class="alert alert-<%= name.to_s == 'notice' ? 'success' : 'danger' %>">
<div class="alert alert-<%= name %>" role="alert">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a query, I believe I need to maintain the original line 4 (and add "role"). Because Rails uses :notice and :alert as flash message keys and we have to map notice to success and alert to danger. Let me know if I'm wrong.

@DanielKehoe DanielKehoe merged commit d90ee4d into RailsApps:bootstrap4 Sep 1, 2016
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