app版本管理报错问题

memcached_alan
z9hang 11 years ago
parent c552a22fb2
commit 11c8c0510a

@ -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 %>

Loading…
Cancel
Save