instance method
label
Ruby on Rails 3.1.12
Since v3.0.20Signature
label(method, text = nil, options = {}, &block)
No documentation comment.
Parameters
-
methodreq -
textopt = nil -
optionsopt = {} -
blockblock
Source
# File actionpack/lib/action_view/helpers/form_helper.rb, line 1287
def label(method, text = nil, options = {}, &block)
@template.label(@object_name, method, text, objectify_options(options), &block)
end
Defined in actionpack/lib/action_view/helpers/form_helper.rb line 1287
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::FormBuilder