Skip to content

Instantly share code, notes, and snippets.

@GantMan
Created July 1, 2014 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GantMan/ad5a23bd5e92b79bf40f to your computer and use it in GitHub Desktop.
Save GantMan/ad5a23bd5e92b79bf40f to your computer and use it in GitHub Desktop.
Validation use Example
# Validation Growth Plan
# STEP 1: Validation Tool/Utility
# STEP 2: Check on Validity of RMQ selected
# STEP 3?: Place validation on a specific input, that will watch and validate onchange
# The following a is a suggested workflow for Step 2
# Example project validation method
def valid_form?
rmq(:mandatory_input_fields).validation.check(presence: true)
rmq(@email).validation.check(email: true)
rmq(@password).validation.check(min_length: 4, max_length: 16)
rmq(@ssn).validation.check(length: 4, digits: true)
return rmq.validation.status
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment