Getting the image URL without the HTML in Rails
Posted
by tesmar
on Stack Overflow
See other posts from Stack Overflow
or by tesmar
Published on 2010-05-20T16:14:16Z
Indexed on
2010/05/20
16:20 UTC
Read the original article
Hit count: 169
ruby-on-rails
|assets
Hi,
In Rails is there a way to get the URL to the image (going through the assets_host) and just return the URL of the image? I want to use assets_host data in my Javascript, but I just need to insert the URL into the JS, not the whole image_tag.
Thank you in advance!
© Stack Overflow or respective owner