Get subdomain from action controller

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,

Just use subdomain_fu plugin’ll get ‘current_subdomain’
method to use in controllers

Thanks Vladimir,

I will look into subdomain_fu tonight.

Kind regards,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs