Assets

<%= link_to new_asset_path, class: 'action_button' do %> <%= icon("plus", library: "tabler", "aria-hidden": true) %> Create asset <% end %> <%= will_paginate @assets %> <% @assets.each do |asset| %> <% end %>
Preview Name Type
<%= image_tag asset.upload.url(:thumb), style: "max-width: 100px; max-height: 100px;" %> <%= link_to asset.name, asset.upload.url %> <%= asset.upload.content_type %> <%= link_to 'Show', asset %> <%= link_to 'Edit', edit_asset_path(asset) %> <%= button_to asset, method: :delete, form: { data: { confirm: 'Are you sure?' }, class: 'button_to destructive' } do %> <%= icon("trash", library: "tabler", "aria-hidden": true) %> Destroy <% end %>