request.path
should return what you’re looking for if you’re not concerned about the hostname. Otherwise you might try:
url_for(:only_path => false, :overwrite_params=>nil)
request.path
should return what you’re looking for if you’re not concerned about the hostname. Otherwise you might try:
url_for(:only_path => false, :overwrite_params=>nil)