class ActionView::Helpers::Tags::TextField

:nodoc:
:nodoc:

def field_type

def field_type
  @field_type ||= name.split("::").last.sub("Field", "").downcase
end

def field_type

def field_type
  self.class.field_type
end

def render

def render
  options = @options.stringify_keys
  options["size"] = options["maxlength"] unless options.key?("size")
  options["type"] ||= field_type
  options["value"] = options.fetch("value") { value_before_type_cast } unless field_type == "file"
  add_default_name_and_id(options)
  tag("input", options)
end