All threads / How i put a link or button to back to the last search in a form with method GET
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.

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

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

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

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

    logo Created with Sketch.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2022 GoRails, LLC. All rights reserved.