user validation

This commit is contained in:
Karol Selak 2021-03-21 17:02:04 +01:00
parent 39a89ad564
commit ed6a5d69f6
7 changed files with 38 additions and 8 deletions

View file

@ -12,9 +12,15 @@
<body>
<%= link_to 'Home', '/welcome', method: :get%>
<% flash.each do |type, msg| %>
<% flash.each do |type, notice| %>
<div class='card-panel teal lighten-5'>
<%= msg %>
<% if notice.is_a? String %>
<%= notice %>
<% else %>
<% notice.each do |msg| %>
<div><%= msg %></div>
<% end %>
<% end %>
</div>
<% end %>
<%= yield %>