ActionView::Helpers::FormTagHelper
image_submit_tag
API docs (Rails 8.1.4.1) ↗def image_submit_tag(source, options = {})
Description
Creates an <input type="image"> (an image submit button). Unlike submit_tag, it adds neither name nor data-disable-with.
ERB
Changes from the previous output: Added Removed Changed
HTML
Preview
Interacting with the preview updates the form submission.
Form submission
Form data
| name | value |
|---|
Request body
Content-Type:
params
Clicking the image in the preview sends the clicked position, named after the
name value with .x and .y appended (x and y without a name).