Files and Images
<%= link_to 'Upload a File', '', id:'upload_file_link', rel: "asset[file]",
data: {
ui_button: 'plusthick',
upload_path: "#{transit.package_assets_path(resource_type: resource_class.name, resource_id: resource.id.to_s, auth_token: current_user.authentication_token)}"
} %>
<% resource.images.each do |image| %>
<%= render(partial: 'transit/assets/image', object: image) %>
<% end %>
<% resource.files.each do |file| %>
<%= render(partial: 'transit/assets/file', object: file) %>
<% end %>