[ci skip] Add an example to ActionView::Helpers::FormBuilder#label

This commit is contained in:
yui-knk 2015-05-08 21:37:17 +09:00
parent 33f83401ad
commit 92c0af2174

@ -1668,6 +1668,7 @@ def fields_for(record_name, record_object = nil, fields_options = {}, &block)
# 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(method, text = nil, options = {}, &block)
@template.label(@object_name, method, text, objectify_options(options), &block)
end