-
-
Save TigerWolf/a6c26c06fd77c915549f1cf8c7a201c3 to your computer and use it in GitHub Desktop.
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
<!-- app/views/profiles/show.html.erb --> | |
<% if @profile.image.attached? %> | |
<!-- @profile.image.present? will always return true, use attached? to check presence --> | |
<p> | |
<strong>Image:</strong> | |
<br> | |
<%= image_tag @profile.image %> | |
</p> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment