RailsCasts Pro episodes are now free!

Learn more or hide this

Conditional Validations

#41 Conditional Validations

Jun 06, 2007 | 4 minutes | Active Record
By default, validations will take place every time the model is saved. Sometimes you only want a validation to happen when certain conditions are met. See how to do that in this episode.
  • Download:
  • mp4Full Size H.264 Video (6.57 MB)
  • m4vSmaller H.264 Video (4.82 MB)
  • webmFull Size VP8 Video (13.7 MB)
  • ogvFull Size Theora Video (8.5 MB)