I added some puts in the method of the controller that is related to that view and the method works fine; but when it tries to render the page, it is redirected.
I am using rails 5.2.4.4; the application is running with docker.
I think more information will be needed here. Like the full url, the controller, the routes, the options of the browser console, the code of the form_tag.
Why do you have form_tag with get?
There are a lot of options. I assume you’ve selected the one that fits your needs.
But for implementing filters I’ve personally used in different contexts
Simulus controllers that send GET requests
Simple GET requests
Post Request
Gems like Filterrific
jQuery based filtering.
and you can use the form_tag with get method
There are options. The most recent that I’ve used is number 1. My point is there probably isn’t a better approach, but different depending on what you have.
If you could share more of your code or an example app it would be much easier for me or others to help.