Reputation: 5962
I'm having trouble debugging a client, and I'm trying to get the raw URL on the server which is in rails. I'm wondering how I can dump the raw URL/http message that is hitting rails.
If found query_string, which works okay for gets. But if a user does a post, I can't seem to find the raw string anywhere.
All I can find is post-parsed parameters in hashes vs raw URLs.
Help?
Upvotes: 2
Views: 1633
Reputation: 42865
request.url
Will give the current url.
See other answers:
How do I get the current absolute URL in Ruby on Rails?
Upvotes: 6