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

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -