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

2010-02-10 Thread Paul Harrington
Mat Brown wrote: 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

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

2010-02-10 Thread Paul Harrington
Mat Brown wrote: 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. More regards to this: I am *deathly afraid* of communicating with web services during my apps' request/response

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

2010-02-10 Thread Mat Brown
On Wed, Feb 10, 2010 at 11:39, Paul Harrington li...@ruby-forum.com wrote: Mat Brown wrote: 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. More regards to this: I am *deathly

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

2010-02-10 Thread lunaclaire
Thx for the replies, Mat and Paul. I agree w Paul in this case. The model is responsible for the communication w FB as part of a cross-posting step that is part of the business logic. So, that's where I'm putting this. And it kinda works... it *does* work as far as being able to call image_path