Sha256: d20378bb86c818ba88381c368fa16b799e9b67457b80b893a91d4a0a8a84b9f6
Contents?: true
Size: 558 Bytes
Versions: 10
Compression:
Stored size: 558 Bytes
Contents
%h1 Images = form_for @image, url: admin_images_path, method: :post, multipart: true do |f| = f.text_field :name, placeholder: 'give your image a title' = f.file_field :file = f.submit 'Upload', class: 'btn btn-primary' <hr> %div.row - @images.each do |image| %div.col-md-3.col-sm-4.col-xs-6.thumbnail = raw "<img class='gallery' src='/images/#{image.file}' />" %p = link_to "/images/#{image.file}", "/images/#{image.file}" = link_to 'delete', admin_image_path(image), method: :delete, class: 'btn btn-xs btn-default'
Version data entries
10 entries across 9 versions & 1 rubygems