Sha256: ae2c957067d227fd095e9bec0f871262eb0d8da49a0a7902cf271cb19517107b

Contents?: true

Size: 413 Bytes

Versions: 9

Compression:

Stored size: 413 Bytes

Contents

<%#
# Image Show Partial

This partial renders an image attribute,
to be displayed on a resource's show page.

By default, the attribute is rendered as an image tag.

## Local variables:

- `field`:
  An instance of [Administrate::Field::Image][1].
  A wrapper around the image url pulled from the database.

[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Image
%>

<%= image_tag field.data %>

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
administrate-field-image-1.0.0 app/views/fields/image/_show.html.erb
administrate-field-image-0.0.2 app/views/fields/image/_show.html.erb
administrate-field-image-0.0.1 app/views/fields/image/_show.html.erb
administrate-0.1.5 app/views/fields/image/_show.html.erb
administrate-0.1.4 app/views/fields/image/_show.html.erb
administrate-0.1.3 app/views/fields/image/_show.html.erb
administrate-0.1.2 app/views/fields/image/_show.html.erb
administrate-0.1.1 app/views/fields/image/_show.html.erb
administrate-0.1.0 app/views/fields/image/_show.html.erb