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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -