How to get Host name in Rails 3?

后端 未结 3 1166
野的像风
野的像风 2020-12-09 15:58

In Rails 2.3, I could just use HOST to get my hostname but it seems it\'s not available anymore. What can I use instead?

I just want something that returns loc

3条回答
提交回复
热议问题