# File lib/action_view/helpers/form_tag_helper.rb, line 513 def image_submit_tag(source, options = {}) options = options.stringify_keys if confirm = options.delete("confirm") ActiveSupport::Deprecation.warn ":confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => \'Text\' }' instead" options["data-confirm"] = confirm end tag :input, { "type" => "image", "src" => path_to_image(source) }.update(options) end