rescue fallback

This commit is contained in:
harrybomrah committed 2014-05-07 13:18:35 +08:00
1 parent 4e9968f58f
commit f01785443e
1 file changed
+3 -3
+3 -3
View File
@@ -17,9 +17,9 @@
</ul>
</div>
</td>
<td><a href="/admin/page_contents/<%= page.id.to_s %>/view" ><%= page.page_contexts.last.version %></a></td>
<td><%= format_value page.page_contexts.last.updated_at %></td>
<td><%= User.find(page.page_contexts.last.update_user_id).user_name %></td>
<td><a href="/admin/page_contents/<%= page.id.to_s %>/view" ><%= page.page_contexts.last.version rescue nil %></a></td>
<td><%= format_value page.page_contexts.last.updated_at rescue nil %></td>
<td><%= User.find(page.page_contexts.last.update_user_id).user_name rescue nil %></td>
</tr>
<% end %>
</tbody>