Microsoft
Software
Hardware
Network
Question : Rails: How do I get the domain name
Is there an easy way to get the domain name of where something was called from?
For example, if I have the same app that is linked to both
www.somesite.com
and
www.somesite.net
, is there an easy way to find out which one the user is clicking through to use the app?
Thanks,
Grant
Answer : Rails: How do I get the domain name
ActionController.host()
http://api.rubyonrails.com
/classes/A
ctionContr
oller/
Abst
ractReques
t.html#M00
0413
1: 2: 3: 4: 5:
Controller @host = request.host View <%= @host %>
Open in New Window
Select All
Random Solutions
DCDIAG - SERVER failed test NCSecDesc
Can I sync two PDA's - one Palm OS, one Windows Mobile 5 - with Outlook 2003?
How can i configure tomcat in my netbeans IDE?
Purging all mailboxes on Exchange
How can I identify the 'other devices' in my device manager? i.e. Base System Device, SM Bus Controller, Video Controller, Unknown Device. Don't know where to search to find drivers.
Domain controller can't authenticate local LAN user accounts when WAN link lost
Need to change root password on production server.. help!
running vrrpd daemon
Activesyn suddenly stopped working on Exchange 2007 server
Citrix and Domain Controller