lib/formalizer/formalizer.rb
# Adds a FormField object to the hash
# Aalidates that the id is unique
# * +form_field_hash+ - a hash describing the form field.
#                       See examples at the end of formalizer/form_field.rb
Adds a FormField object to the hash
Aalidates that the id is unique
+form_field_hash+ - a hash describing the form field.
See examples at the end of formalizer/form_field.rb
Adds a FormField object to the hash Aalidates that the id is unique + form_field_hash + - a hash describing the form field . See examples at the end of formalizer / form_field . rb
def add_form_field form_field_hash
    raise NotUniqueId unless @form_fields[form_field_hash[:id]].nil?
    @form_fields[form_field_hash[:id]] = FormField.new(form_field_hash)
    add_tags :form_fields, form_field_hash
  end
def add_form_field form_field_hash raise NotUniqueId unless @form_fields [ form_field_hash [ :id ] ] . nil? @form_fields [ form_field_hash [ :id ] ] = FormField . new ( form_field_hash ) add_tags :form_fields , form_field_hash end
Adds a FormField object to the hash
Aalidates that the id is unique
 +form_field_hash+ - a hash describing the form field.
Adds a FormField object to the hash Aalidates that the id is unique + form_field_hash + - a hash describing the form field .
# unique id validation # adding to hash # handling tags
form_field_hash
<not_specific>