Save 36% for Black Friday! Learn more

New Discussion

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

1
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.

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.

Join the discussion
Create an account Log in