class ActionView::Helpers::FormBuilder
Public Instance Methods
label(method, text = nil, options = {}, &block)
click to toggle source
# File lib/need_label/helpers.rb, line 42 def label(method, text = nil, options = {}, &block) if @object_name.class == Symbol @object = @template.instance_variable_get("@#{@object_name}") end @template.need_label(@object_name, @object, method, text, objectify_options(options), &block) end