quattro_4 scribble

scribble 落書き (調べた事をただ落書きする)

MotionInMotion Episode 38 - RMQ Validations

RMQ Validations - MotionInMotion

Validation with RMQ

Documentation | RMQ

  • valid?
  • field
    • rmq.append(UITextField, :user).validates(:email)
  • regex
    • rmq.validation.regex_match?('test', /test/) #true
  • length
    • rmq.validation.valid?('test', :length, exact_length: 4) #true
  • clear
    • rmq(:password).clear_validations!
  • style
    • def user(st)
      • st.validation_errors = {