On Jan 27, 2009, at 2:53 PM, Sven wrote:
> I'm generating an XML feed to be used from outside of a Rails
> application. The feed should include URLs for associated images. I'm
> using image_path to generate the image URLs. This respects
> relative_url_root, but all it gives me is the absolute path of the
> image relative to the domain root (e.g. /image_assets/1234/
> my_image.jpg). Is there a standard way to get fully specified absolute
> URLs to images? I looked at url_for, which implements an :only_path
> option, but that option is only available for controller paths.
>
> Thanks,
>
> Sven


Try image_url rather than image_path

-Rob

Rob Biedenharn          http://agileconsultingllc.com
r...@agileconsultingllc.com



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to