I\'m working on the crud part of a model, to which i\'ve added image support to. Ideally i would like to show the image if you are editing a model, which i would do like this.>
The selected answer doesn't work.
Try with this :
<%= if Map.has_key?(assigns, :company) do %> <%= Logo.url({@company.logo, @company}, :thumb) %> <% end %>