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?

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

http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#method-i-image_submit_tag

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