Just use subdomain_fu plugin http://github.com/mbleigh/subdomain-fu
<http://github.com/mbleigh/subdomain-fu>You'll get 'current_subdomain'
method to use in controllers

On Mon, Apr 19, 2010 at 10:35 AM, Joshua Partogi <[email protected]>wrote:

> Hi all,
>
> Is it possible to get the subdomain of the request from the action
> controller? If so, how do we get the subdomain from Rails action
> controller? I tried to look at the Rails guide about this but can not
> find any information on this.
>
> Thank you very much in advance for your help and assistance.
>
> Kind regards,
> Joshua
>
> --
> http://twitter.com/scrum8
>
> --
> 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]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

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