Ask A Question

Notifications

You’re not receiving notifications from this thread.

How i put a link or button to back to the last search in a form with method GET

Edwin Vasquez asked in Rails

Hi, I got a form through GET to search employees, when this give me a result through some filters (code, name, status), i can go to one employee in particular, but before i see the show page of this employee, i want to back to the index but whit the values on each input and the last result.

Reply

I would pass in the search params into the employee show URL so you can have a link back to the search results that includes the same params.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 85,376+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.