Is there something similar for rails that is like $_SERVER in PHP? Something that gives you the hostname, etc. I tried using just host in my controller, because the documentation says there is a host method, and got an undefined method error.
Try request.host
See Peak Obsession
Regards, Rimantas