From a9c27e7d5e82099f783f68897bba6741aad2c53c Mon Sep 17 00:00:00 2001 From: Edward Tsech Date: Tue, 8 May 2012 16:26:26 +0200 Subject: Add example for image_submit_tag with confirmation. [ci skip] --- actionpack/lib/action_view/helpers/form_tag_helper.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'actionpack/lib/action_view/helpers') diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index ef35a411ad..8e8a56c65c 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -502,6 +502,9 @@ module ActionView # # image_submit_tag("agree.png", :disabled => true, :class => "agree_disagree_button") # # => + # + # image_submit_tag("save.png", :confirm => "Are you sure?") + # # => def image_submit_tag(source, options = {}) options = options.stringify_keys -- cgit v1.2.3