aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_tag_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_tag_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_tag_helper.rb4
1 files changed, 4 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 d8535d2870..126a407cad 100644
--- a/actionpack/lib/action_view/helpers/form_tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -79,6 +79,10 @@ module ActionView
tag("input", { "type" => "submit", "name" => "submit", "value" => value }.update(convert_options(options)))
end
+ def image_submit_tag(source, options = {})
+ tag("input", { "type" => "image", "src" => image_path(source) }.update(convert_options(options)))
+ end
+
private
def convert_options(options)
options = options.stringify_keys