diff --git a/app/views/admin/page_contents/index.html.erb b/app/views/admin/page_contents/index.html.erb index c7d3080..6b7cc0d 100644 --- a/app/views/admin/page_contents/index.html.erb +++ b/app/views/admin/page_contents/index.html.erb @@ -17,9 +17,9 @@ - <%= page.page_contexts.last.version %> - <%= format_value page.page_contexts.last.updated_at %> - <%= User.find(page.page_contexts.last.update_user_id).user_name %> + <%= page.page_contexts.last.version rescue nil %> + <%= format_value page.page_contexts.last.updated_at rescue nil %> + <%= User.find(page.page_contexts.last.update_user_id).user_name rescue nil %> <% end %>