こんな方法が、、
知らなかった。
request.raw_host_with_port
ドメイン名とポートを取得してくれます。
まぁ滅多につかうもんでもないけど。。
こんな方法が、、
知らなかった。
request.raw_host_with_port
ドメイン名とポートを取得してくれます。
まぁ滅多につかうもんでもないけど。。
This entry was posted on Tuesday, October 6th, 2009 at 9:32 pm and is filed under Rails, ruby. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.
はるかなる熊 is proudly powered by
WordPress, Installed by SimpleScripts. web hosting
Entries (RSS)
and Comments (RSS).