# Validations on update

**URL:** <https://www.ruby-forum.com/t/validations-on-update/147062>\
**Category:** Rails\
**Created:** [August 28, 2008, 6:32am UTC](https://www.ruby-forum.com/t/validations-on-update/147062 "2008-08-28T06:32:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin\_mercy2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d2c977/32.png) [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Post date:** [August 28, 2008, 6:32am UTC](https://www.ruby-forum.com/t/validations-on-update/147062/1 "2008-08-28T06:32:29Z")

</div>

Dear all,

I have created a model Admin and validated for the presence, format\_of  
in alphabets, reg expression for email formats.

When i was adding a new admin the data’s are validated properly but  
while updating the data in model it was not validated.

Could any one please suggest a way to proceed? how to perform the same  
validations while adding and modifying the model.

Thanks in advance

Regards,  
Jose Martin

---

<div class="post-metadata">

**Author:** ![martin\_mercy2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d2c977/32.png) [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Post date:** [August 28, 2008, 10:42am UTC](https://www.ruby-forum.com/t/validations-on-update/147062/2 "2008-08-28T10:42:58Z")

</div>

On 28 Aug 2008, at 05:32, dare ruby wrote:

> validations while adding and modifying the model.

This should happen automatically (unless you specifically ask for it  
not to). If you can show some code others might be able to offer  
guidance.

Fred
