E
E
eldar_web2016-02-10 14:45:03
Ruby on Rails
eldar_web, 2016-02-10 14:45:03

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

1 answer(s)
E
Evgeny Danilov, 2016-02-15
@jmelkor

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 question

Ask a Question

731 491 924 answers to any question