Rails image_tag prefix to a static content
- by pepernik
I would like to server all static content from a different domain like static.mydomain.com. Is there an option every image_tag, javascript_include_tag and stylesheet_link_tag would automatically add a prefix to that static domain?
Example:
image_tag '/images/img1.png'
would generate
http://static.mydomain.com/images/img1.png
Thx10x.