diff options
author | Zachary Scott <e@zzak.io> | 2014-04-22 10:51:54 +0900 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2014-04-22 10:51:54 +0900 |
commit | 1161d1057c58021af6c2d48d65911c58b5ecde2d (patch) | |
tree | f545d35bcbaaa6569e6a209c7bb1517ab909463e /actionview/lib/action_view/helpers/form_helper.rb | |
parent | 6e6c76d2ffb6eb2e72bcd7da37f6c648315bfc1c (diff) | |
download | rails-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/action_view/helpers/form_helper.rb')
-rw-r--r-- | actionview/lib/action_view/helpers/form_helper.rb | 1 |
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 |