ruby on rails - Paper clip - stored image path inside active admin -
all files uploaded paper clip beeing stored inside public/system/images/pictures/ , lots of 000/000/002 folders , etc.
i want use image_tag inside 1 active admin's view print images related 1 gallery. can image object, , of course image name, how figure out right stored path?
just call url
on image object, this:
<% @gallery.images.each |image| %> <%= image_tag image.url %> <% end %>
Comments
Post a Comment