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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 <jpartogi-YxiBlgEkUCTQT0dZR+AlfA@public.gmane.org>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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks Vladimir, I will look into subdomain_fu tonight. Kind regards, Joshua -- http://twitter.com/scrum8 On Apr 19, 2:27 pm, Vladimir Rybas <vladimirry...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Just use subdomain_fu pluginhttp://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 <jpart...-YxiBlgEkUCTQT0dZR+AlfA@public.gmane.org>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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.