# Rails Validation on update

**URL:** <https://www.ruby-forum.com/t/rails-validation-on-update/151073>\
**Category:** Rails\
**Created:** [October 16, 2008, 3:12pm UTC](https://www.ruby-forum.com/t/rails-validation-on-update/151073 "2008-10-16T15:12:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_shukla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7cd45c/32.png) [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Post date:** [October 16, 2008, 3:12pm UTC](https://www.ruby-forum.com/t/rails-validation-on-update/151073/1 "2008-10-16T15:12:52Z")

</div>

Hello friends,  
I am using  
“validates\_presence\_of :password, :if =\>  
:password\_required?”  
for password validation but at the time of updating a profile i don’t  
want  
to use the default validation. So for the same i am calling  
validates\_presence\_of :password, :if =\>  
:password\_required?, :on =\> :create"

But still the validation is taking place at the time of updating  
records.

Any good solutions?

regards  
Abhishek shukla
