How can I disable Image_submit_tag from the params hash?

Does anyone know how to eliminate the x and y options when you use image_submit_tag with the get method?

I have a simple search form, and use get to pass the value to the URL. When I use image_submit_tag, it also adds x and y coordinates, so I get urls like

http://example.com?q=somesearchterm&x=15&y=12

When I used submit_tag, I can use the attribute: name => nil (was in one of the RailsBates Ryan Bates), but it doesn't seem to work for image_submit_tag. Of course, this does not affect the functionality, but I do not need them and would like them to calm down.

+3
source share
1 answer

HTML , Rails. , , image_submit JS . submit CSS JS , .

+2

Source: https://habr.com/ru/post/1744402/


All Articles