Solution 1 will work, except that I still need to use the host resource, and I don't want to hard code it. Solution 2 does not work, as this will affect all asset paths. I think what I should do is combine using the img tag, but use rails to calculate the resource host for me.
So, in the end it would look something like this.
<img src=\"#{@template.image_path("image.jpg}}\"/>
thanks for the idea!
source
share