Class: TextField

Inherits:
BasicField show all
Defined in:
lib/formalize/field.rb

Instance Method Summary collapse

Methods inherited from BasicField

#errors, #errors=, #input, #valid?, #validate, #validate_format, #validate_length, #validate_presence, #value, #value=

Methods included from Helpers

#tag, #tag_attributes, #tag_content

Constructor Details

#initialize(id, opts = {}) ⇒ TextField

Returns a new instance of TextField.



72
73
74
75
# File 'lib/formalize/field.rb', line 72

def initialize(id, opts={})
  super
  @opts[:type] = :text
end