aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index ed8e8d8d10..373f47a39c 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -234,7 +234,11 @@ module ActionView
tag_text << " selected" if value
tag_text << ">True</option></select>"
end
-
+
+ def to_content_tag(tag_name, options = {})
+ content_tag(tag_name, value, options)
+ end
+
def object
@template_object.instance_variable_get "@#{@object_name}"
end