app版本管理报错问题

This commit is contained in:
z9hang 2015-03-11 15:13:41 +08:00
parent c552a22fb2
commit 11c8c0510a
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
<% if @versions.first.attachments.any?%> <% if !@versions.first.nil? && @versions.first.attachments.any?%>
<% options = {:author => true, :deletable => true } %> <% options = {:author => true, :deletable => true } %>
<%= render :partial => 'attachments/links', :locals => {:attachments => @versions.first.attachments, :options => options, :is_float => true} %> <%= render :partial => 'attachments/links', :locals => {:attachments => @versions.first.attachments, :options => options, :is_float => true} %>
<% end %> <% end %>