blog.robotex.de

Rails3: Getting the base url

I don't know, if there are better ways of getting the base_url in rails, but i've come up with this:

request.url.gsub(request.path, '')

Back