Answer the question
In order to leave comments, you need to log in
How in Ruby on Rails to take the url that is in the string?
There is a /shipping page.
In this page, we load another page via ajax, and inside this page I want to take the url from the string, and write request.env["REQUEST_URI"], request.original_url, request.url, and here it shows the url of the already loaded page.
How to solve the problem?
Answer the question
In order to leave comments, you need to log in
And for what purpose do you need the url? Maybe just pass / read the necessary parameters in params or sessions? By the way, you can also store the entire url there, with a strong desire.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question