Rails images in many folders -
i bought ready css , html template. there many images in many folders, example:
/images/folder_a/folder_a2/folder_a3/image.png /images/folder_a/folder_s2/folder_s3/image.png /images/folder_a/folder_b2/folder_b3/image.png /images/folder_a/folder_z2/folder_z3/image.png
is there way in rails not write path every image in view?
<%= image_tag('image.png') %>
gives not_found if not write path it. know can copy files /images/ ...
you write helpers each of major folders cut down on having repeat them. if follow themes make sense (ie. icons, header images, borders, buttons etc.)
Comments
Post a Comment