lib/formalizer/form.rb
# Validates that the html template is usable
# Raises errors if <formalizer> tags don't contain id attribute
Validates that the html template is usable
Raises errors if  tags don't contain id attribute
Validates that the html template is usable Raises errors if tags don ' t contain id attribute
def validate_template
      @html_template.css('formalizer').each do |html_field|
        raise FormTemplateError if html_field.attributes['id'].nil?
      end
    end
def validate_template @html_template . css ( 'formalizer' ) . each do | html_field | raise FormTemplateError if html_field . attributes [ 'id' ] . nil? end end
Validates that the html template is usable
Raises errors if <formalizer> tags don't contain id attribute
Validates that the html template is usable Raises errors if <formalizer > tags don ' t contain id attribute