# Validations - When do they get called

**URL:** <https://www.ruby-forum.com/t/validations-when-do-they-get-called/121307>\
**Category:** Rails\
**Created:** [November 26, 2007, 6:43pm UTC](https://www.ruby-forum.com/t/validations-when-do-they-get-called/121307 "2007-11-26T18:43:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [November 26, 2007, 6:43pm UTC](https://www.ruby-forum.com/t/validations-when-do-they-get-called/121307/1 "2007-11-26T18:43:17Z")

</div>

Just a simple of question of when do validations get called? Do they get  
called on save or new or do they get called whenever an instance of that  
object gets called? Thanks,

-S

---

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [November 26, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/validations-when-do-they-get-called/121307/2 "2007-11-26T18:47:51Z")

</div>

On 26 Nov 2007, at 17:43, Shandy N. wrote:

> Just a simple of question of when do validations get called? Do they  
> get  
> called on save or new or do they get called whenever an instance of  
> that  
> object gets called? Thanks,

When the object is saved. You can also call valid? to see if an object  
is valid.

Fred
