There's no documentation for this item.
Source Code
# File action_view/helpers/form_helper.rb, line 468 def to_label_tag(text = nil, options = {}) name_and_id = options.dup add_default_name_and_id(name_and_id) options["for"] = name_and_id["id"] content = (text.blank? ? nil : text.to_s) || method_name.humanize content_tag("label", content, options) end
<code/>and<pre/>for code samples.