On 8 Sep 2008, at 15:51, Joe Peck wrote:

>
> Triple post time.  Many apologies to all offended parties.
>
> In controllers and views, request.domain(2) will return the current
> host.
>
>
> Unfortunately for me, request.domain does not work in rake tasks, so I
> am up the creek without a paddle.

That's normal: rake tasks are outside the request cycle, so they've no  
way of knowing how people access the site (ie localhost, a dotted ip  
address, one of the many domain names pointing at the server).
Maybe you could explain what it is you are trying to do?

Fred

--~--~---------~--~----~------------~-------~--~----~
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