How do I quiet image_submit_tag from params hash?

Posted by Alan S on Stack Overflow See other posts from Stack Overflow or by Alan S
Published on 2010-05-06T20:12:29Z Indexed on 2010/05/07 0:08 UTC
Read the original article Hit count: 143

Filed under:
|

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

I have a simple search form, and using get to pass the value in the url. When I use image_submit_tag, it also appends the x and y coords, so I get urls like

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

When I have used submit_tag, I can use the :name => nil attribute (was in one of Ryan Bates' Railscasts), but it doesn't seem to work for image_submit_tag. Granted it doesn't affect functionality, but I don't need them and would like them quieted.

© Stack Overflow or respective owner

Related posts about rails

Related posts about ruby-on-rails