From 1161d1057c58021af6c2d48d65911c58b5ecde2d Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Tue, 22 Apr 2014 10:51:54 +0900 Subject: Add test for using ActionView::Helpers::FormHelper.label with block and html --- actionview/lib/action_view/helpers/form_helper.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionview/lib') 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 Terms.'.html_safe # end + # # => 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 -- cgit v1.2.3