diff options
author | Edward Tsech <edtsech@gmail.com> | 2012-05-08 16:26:26 +0200 |
---|---|---|
committer | Edward Tsech <edtsech@gmail.com> | 2012-05-08 16:29:24 +0200 |
commit | a9c27e7d5e82099f783f68897bba6741aad2c53c (patch) | |
tree | e3e928bfd42e137e39b8470346be9c1159a8ea4a /actionpack | |
parent | b3bd01c154e8294cbd0ecaa2aa0b7b3ac322592c (diff) | |
download | rails-a9c27e7d5e82099f783f68897bba6741aad2c53c.tar.gz rails-a9c27e7d5e82099f783f68897bba6741aad2c53c.tar.bz2 rails-a9c27e7d5e82099f783f68897bba6741aad2c53c.zip |
Add example for image_submit_tag with confirmation. [ci skip]
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_tag_helper.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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") # # => <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 |