Method: Formidable::Elements::Form#initialize
- Defined in:
- lib/formidable/elements.rb
#initialize(action, method = "POST", prefix = nil, attributes = Hash.new, raw_data = Hash.new) ⇒ Form
TODO: prefix should be in the form definition (name or namespace)
124 125 126 127 128 129 130 |
# File 'lib/formidable/elements.rb', line 124 def initialize(action, method = "POST", prefix = nil, attributes = Hash.new, raw_data = Hash.new) @raw_data = raw_data self.setup super(:form, nil, attributes.merge!(action: action, method: method), raw_data) set_prefix(prefix) if prefix self.raw_data = raw_data end |