Skip to content
Browse files

Add example for image_submit_tag with confirmation. [ci skip]

  • Loading branch information...
1 parent b3bd01c commit a9c27e7d5e82099f783f68897bba6741aad2c53c @edtsech edtsech committed May 8, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 actionpack/lib/action_view/helpers/form_tag_helper.rb
View
3 actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -502,6 +502,9 @@ def button_tag(content_or_options = nil, options = nil, &block)
#
# image_submit_tag("agree.png", :disabled => true, :class => "agree_disagree_button")
# # => <input class="agree_disagree_button" disabled="disabled" src="/images/agree.png" type="image" />
+ #
+ # image_submit_tag("save.png", :confirm => "Are you sure?")
+ # # => <input src="/images/save.png" data-confirm="Are you sure?" type="image" />
def image_submit_tag(source, options = {})
options = options.stringify_keys

0 comments on commit a9c27e7

Please sign in to comment.
Something went wrong with that request. Please try again.