-
-
Save Ravenna/5af2f88f29c21e24b42c to your computer and use it in GitHub Desktop.
_photo_fields.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="photo" id="photo_<%= f.object.id %>"> | |
<p> | |
<%= f.label :data, 'Photo' %> <br /> | |
<%= f.file_field :data %> | |
</p> | |
<p> | |
<%= f.label :data, 'Current Image' %><br /> | |
<%= image_tag f.object.data.url(:tiny) %> | |
</p> | |
<p> | |
<%= f.link_to_remove "Remove Photo" %> | |
</p> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment