Button_to with image

I’m calling button_to in my page, and it renders a form with a submit
button just fine. But what I’d really like is

<input type=“img” src=“myimage.png” …>

instead of

<input type="submit…>

button_to doesn’t seem able to do this, :type and :src parameters get
ignored. Is there a way to do it?

Tim S.
[email protected]

If the button is to submit a form, you can use image_tag_submit

Otherwise, you can just use link_to(image_tag(…))