From f01785443e3e986fccdcbda0aaa8d96c603cf5b9 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 7 May 2014 13:18:35 +0800 Subject: [PATCH] rescue fallback --- app/views/admin/page_contents/index.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 %>