Class: Formidable::Elements::HiddenField

Inherits:
Input show all
Defined in:
lib/formidable/elements.rb

Constant Summary

Constants included from Coercions

Coercions::IncompatibleInterface, Coercions::MissingCoercion

Constants included from Rendering

Rendering::RendererNotAssigned

Instance Attribute Summary

Attributes inherited from BasicElement

#attributes, #cleaned_data, #content, #name, #raw_data, #tag

Attributes included from Rendering

#renderer

Instance Method Summary collapse

Methods inherited from Input

#raw_data=

Methods included from Coercions

#cleaned_data, #coerce, #coerce!, #coercions, coercions, included

Methods included from Validations

#errors, register_validation, #valid?, #validate, #validations

Methods included from Rendering

included, #render

Constructor Details

#initialize(name, attributes = Hash.new, raw_data = nil) ⇒ HiddenField

Returns a new instance of HiddenField.



186
187
188
# File 'lib/formidable/elements.rb', line 186

def initialize(name, attributes = Hash.new, raw_data = nil)
  super(name, attributes.merge!(type: "hidden"), raw_data)
end