Answer the question
In order to leave comments, you need to log in
How can you find out from which url a person came from in Ruby on Rails?
I want to put the "Back" button in the view, and write the address of the previous url in the link.
How can it be solved?
Learned to use request.referer. But what to do in this case?
Let's say if a person came from /page1 to /page2, then request.referer will show /page1, but if the page is updated in /page2, then an error occurs or, in theory, the path will be /page2. How can this problem be solved?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question