class method
self.new
Ruby on Rails 3.1.12
Since v3.1.12 Last seen in v3.2.22.5Available in: v3.1.12 v3.2.22.5
Signature
self.new(object_name, method_name, template_object, object = nil)
No documentation comment.
Parameters
-
object_namereq -
method_namereq -
template_objectreq -
objectopt = nil
Source
# File actionpack/lib/action_view/helpers/form_helper.rb, line 959
def initialize(object_name, method_name, template_object, object = nil)
@object_name, @method_name = object_name.to_s.dup, method_name.to_s.dup
@template_object = template_object
@object_name.sub!(/\[\]$/,"") || @object_name.sub!(/\[\]\]$/,"]")
@object = retrieve_object(object)
@auto_index = retrieve_autoindex(Regexp.last_match.pre_match) if Regexp.last_match
end
Defined in actionpack/lib/action_view/helpers/form_helper.rb line 959
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::InstanceTag