paint-brush
Performing custom validations in Rails — an exampleby@rfleury2
57,404 reads
57,404 reads

Performing custom validations in Rails — an example

by Ricardo FleuryJanuary 27th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

<a href="https://hackernoon.com/tagged/rails" target="_blank">Rails</a> provides a variety of helpers out of the box for quickly <a href="https://hackernoon.com/tagged/performing" target="_blank">performing</a> commonly used validations — presence, numericality, uniqueness, etc. If the model has validations that go beyond the standard helpers, we must implement a custom validation strategy. I will show three ways of going about validations and discuss pros and cons.
featured image - Performing custom validations in Rails — an example
Ricardo Fleury HackerNoon profile picture
Ricardo Fleury

Ricardo Fleury

@rfleury2

L O A D I N G
. . . comments & more!

About Author

Ricardo Fleury HackerNoon profile picture
Ricardo Fleury@rfleury2

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite