Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

Which is the best place to put a custom validator class ?

Rails • Asked by Xavi Vila

For a custom validator like in

Maybe app/validators ?
Maybe app/models ?
Some other place?

I like app/validators. You can easily add in more there as needed and it's nicely organized. 👍

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 31,152+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.