Update show.html.erb
fix error when @entries.first is nil
This commit is contained in:
1 parent
4da6436267
commit
d96c51168e
1 file changed
+1
-1
@@ -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| %>
|
||||
|
||||
Reference in new issue
Block a user