<!DOCTYPE html>
<html>
<head>
  <title>LiarsDiceServer</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body>
  <% if notice %><p class="alert alert-success"><%= notice %></p><% end %>
  <% if notice %><p class="alert alert-danger"><%= alert %></p><% end %>

<%= yield %>
<%= yield :javascripts %>
</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>LiarsDiceServer</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body>
  <% if notice %><p class="alert alert-success"><%= notice %></p><% end %>
  <% if alert %><p class="alert alert-danger"><%= alert %></p><% end %>

<%= yield %>
<%= yield :javascripts %>
</body>
</html>

Use the correct conditional when deciding whether or not to show the alert flash.
Use the correct conditional when deciding whether or not to show the alert flash.
