From 8491ec82838dca33467d13f4da04a2144b7a1ff0 Mon Sep 17 00:00:00 2001 From: bohung Date: Thu, 23 Apr 2020 16:52:53 +0800 Subject: [PATCH] fix error caused by no title saved. --- app/views/admin/announcements/_index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/announcements/_index.html.erb b/app/views/admin/announcements/_index.html.erb index 753ea39..abf77f2 100644 --- a/app/views/admin/announcements/_index.html.erb +++ b/app/views/admin/announcements/_index.html.erb @@ -24,9 +24,9 @@ <% if b.expired? || (b.category.disable rescue false)%> - <%= b.title.html_safe %> + <%= b.title.to_s.html_safe %> <% else %> - <%= b.title.html_safe %> + <%= b.title.to_s.html_safe %> <% end %> <% if b.expired? %>