Displaying 2 results from an estimated 2 matches for "asset_url".
2012 Oct 18
3
#asset_url helper method
Just putting this out there before I make a pull request.
Is there any interest in an asset_url method as a view helper?
It would work by using the config.action_controller.asset_host if it exists
and prepending this to the results of asset_path.
I have found this necessary when writing html emails and needing a full url
path for assets. Since my CDN in the asset_host mirrors my assets i...
2011 Sep 23
1
Rails 3.1.0 how to pass the full url of an image asset ?
...n it
I build the image path in helper and it get the path
"ceramics/big/c0d0.jpg" "ceramics/big/c0d2.jpg", ...
but I need to get the full url to these image
asset_path("ceramiques/big/c0d0.jpg") => "/assets/ceramiques/big/
c0d0.jpg"
but there is no asset_url to get http://localhost:3000/assets/ceramiques/big/c0d0.jpg
or http://www.mydomain.com/assets/ceramiques/big/c0d0.jpg
thanks for your feedback
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email...