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 from the model, but...

Something odd is going on in that I included the line

config.action_controller.asset_host = "http://your_assets.domain";

with an absolute IP addrs (domain is not established yet) in both my
config/development.rb and config/production.rb files but when I run in
dev mode the urls always come out like:

http://localhost:3000//images/newbie.gif

without the IP addrs at the front. I've rebooted rails to make sure
this config is getting picked up.

Any ideas why I keep getting localhost?

On Feb 10, 8:39 am, Paul Harrington <[email protected]> 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 afraid* of communicating with web
> services during my apps' request/response cycles; you have no idea how
> long it will take for the service to respond back to you, and when
> something with the service goes wrong (after possibly minutes of
> waiting), it tends to go wrong in completely unexpected and magical ways
> (often you'll not even *get* a timeout!). Doing this kind if ish in a
> background service is trivial if this logic already exists in a model;
> its impossible if the logic is in a controller.
> --
> Posted viahttp://www.ruby-forum.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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to