#{alert}
".html_safe if alert %>
- <%= "#{notice}
".html_safe if notice %>
+ <% if alert %>
+ <%= alert %>
+ <% end %>
+ <% if notice %>
+ <%= notice %>
+ <% end %>
<%= yield %>
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 34dd727..a0a5f83 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -15,8 +15,12 @@
<%= render partial: "/layouts/head" %>