ruby on rails - How to change default path for images to look for -
by default, rails looking images "public/images" folder.
but not suiteable me, since have multimedia stuff in "public/data/:model/:id" folders.
how force rails folder.
i don't need obligatory such pattern, mentioned above. thing, need, change "public/images" path "public/data", so, rails should "data" folder, instead of "images".
i don't need use "paperclip" plugin, because models holding pure html content (with clean , simple structure, not change in future), has "img" tags.
how can done ?
you mean image_tag
helper looking default there? that's case if specify relative path. putting full path in gets want believe.
<%= image_tag '/data/model/1'
would generate
<img src="/data/model/1.png">
Comments
Post a Comment