rescue fallback

This commit is contained in:
Harry Bomrah 2014-05-07 13:18:35 +08:00
parent 4e9968f58f
commit f01785443e
1 changed files with 3 additions and 3 deletions

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>