Listing system_pictures

<% if admin_signed_in? -%> <%= form_tag( {:action => "create"} , { :multipart => true }) do %> <%= file_field_tag "system_picture[file]" %> <%= submit_tag 'upload' -%> <% end -%> <% end -%> <% @system_pictures.each do |system_picture| %> <% end %>
Ext Width Height filesize
<%= system_picture.ext %> <%= system_picture.width %> <%= system_picture.height %> <%= system_picture.filesize %> <%= link_to 'Show', system_picture %> <% if admin_signed_in? -%> <%= link_to 'Destroy', system_picture, confirm: 'Are you sure?', method: :delete %> <% end -%>