I have an Image, which contains carrierwave uploads:
Image.find(:first).image.url #=> \"/uploads/image/4d90/display_foo.jpg\"
In my vie
Just taking floor's answer and providing the helper:
# Use with the same arguments as image_tag. Returns the same, except including
# a full path in the src URL. Useful for templates that will be rendered into
# emails etc.
def absolute_image_tag(*args)
raw(image_tag(*args).sub /src="(.*?)"/, "src=\"#{request.protocol}#{request.host_with_port}" + '\1"')
end