user validation
This commit is contained in:
parent
39a89ad564
commit
ed6a5d69f6
7 changed files with 38 additions and 8 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue