Getting the domain name for a request with Ruby on Rails
Just tried to get the domain name in an ActionController and here we go: e.g.
render :text => request.domain()
Just tried to get the domain name in an ActionController and here we go: e.g.
render :text => request.domain()