<% attachment = attribute.split('_file_name').first %>
  • <%= file_field :item, attachment, :disabled => attribute_disabled?(attribute) %> <%= @item.typus_preview(attribute) unless @item.send(attribute).blank? %>