aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2014-04-22 10:51:54 +0900
committerZachary Scott <e@zzak.io>2014-04-22 10:51:54 +0900
commit1161d1057c58021af6c2d48d65911c58b5ecde2d (patch)
treef545d35bcbaaa6569e6a209c7bb1517ab909463e /actionview/lib
parent6e6c76d2ffb6eb2e72bcd7da37f6c648315bfc1c (diff)
downloadrails-1161d1057c58021af6c2d48d65911c58b5ecde2d.tar.gz
rails-1161d1057c58021af6c2d48d65911c58b5ecde2d.tar.bz2
rails-1161d1057c58021af6c2d48d65911c58b5ecde2d.zip
Add test for using ActionView::Helpers::FormHelper.label with block and html
Diffstat (limited to 'actionview/lib')
-rw-r--r--actionview/lib/action_view/helpers/form_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionview/lib/action_view/helpers/form_helper.rb b/actionview/lib/action_view/helpers/form_helper.rb
index 1ff090f244..22bfd87d85 100644
--- a/actionview/lib/action_view/helpers/form_helper.rb
+++ b/actionview/lib/action_view/helpers/form_helper.rb
@@ -746,6 +746,7 @@ module ActionView
# label(:post, :terms) do
# 'Accept <a href="/terms">Terms</a>.'.html_safe
# end
+ # # => <label for="post_terms">Accept <a href="/terms">Terms</a>.</label>
def label(object_name, method, content_or_options = nil, options = nil, &block)
Tags::Label.new(object_name, method, self, content_or_options, options).render(&block)
end