Update show.html.erb
fix error when @entries.first is nil
This commit is contained in:
parent
4da6436267
commit
d96c51168e
|
@ -27,7 +27,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% can_edit = can_edit_or_delete?(@entries.first.u_table) %>
|
||||
<% can_edit = can_edit_or_delete?(@entries.first.u_table) if !(@entries.first.nil?) %>
|
||||
<% @entries.each do |entry| %>
|
||||
<tr>
|
||||
<% @columns.each_with_index do |column, index| %>
|
||||
|
|
Loading…
Reference in New Issue