Re: [Rails] absolute url to images from the model?

2010-02-10 Thread Mat Brown
Your data model layer should not be aware of application state (or even assume it is part of a web app). So, this should be done from the controller/view layer. On Feb 10, 2010 2:45 AM, lunaclaire szager...@gmail.com wrote: I have a need to pass full, absolute urls to images for an interaction

[Rails] absolute url to images from the model?

2010-02-09 Thread lunaclaire
I have a need to pass full, absolute urls to images for an interaction with Facebook. I dont think I can use the view helpers (e.g. image_tag) from the model though... Is there a way to do this from the model (or less desirable, from the controller)? or if I cant use image_tag, is there another