fix for tag error message, clean up dialog

This commit is contained in:
Kyle Drake 2019-06-28 15:43:36 -07:00
parent 0bb6774473
commit 0b14ff9d68
2 changed files with 1 additions and 3 deletions

View file

@ -5,7 +5,7 @@ post '/tags/add' do
if current_site.valid?
current_site.save_tags
else
flash[:errors] = current_site.errors.first
flash[:errors] = current_site.errors.first.last.first
end
redirect request.referer

View file

@ -2,11 +2,9 @@
<% if flash.keys.length > 0 %>
<div class="row content">
<div class="alert txt-Center">
<p style="padding:5px">
<% flash.keys.each do |key| %>
<%= flash[key] %>
<% end %>
</p>
</div>
</div>
<% end %>