Rails 5 - How to let user resume their place in quiz app? : <p>I have a quiz app where users log in and view questions one at a time using will_paginate. Some users complain of closing the browser window or logging out and then having to click dozens of times to get back to where they were.</p>

<p>For example, the user will be on example.com/quiz/page=32 and will close the page for whatever reason. When they come back, they have to start again from page 1 and click till they are back where they are, which is a bad user experience. </p>

<p>What I want to do is to have a way for a user to resume their progress on whatever quiz or resource that they are looking at.</p>

<p>I tried getting the session previous URL, but it only works assuming the user does not visit any other pages and keeps the session/cookie intact.</p>

<p><code>&lt;%= link_to "Resume", url_for(:back) %&gt;</code> </p>
