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
GPO to configure auto-save functionality for open documents??
Unable to Rebuild the Offline Address Book - Exchange 2003
When I play flash animation my sound disappears sometimes
How to disable reading pane and auto preview in Outlook 2003
Crystal Reports XI - Isnull Formula
Page Not Found - Hotmail IE 6 SP1
Active Sync support code 86000108
A problem is preventing Windows from accurately checking the license for this computer, Error Code 0X8009006
How to stop Outlook from Archiving
shell script connect to the database and printing the results