Forum: Ruby on Rails rails Validation on update

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Abhishek shukla (Guest)
on 2008-10-16 17:12
(Received via mailing list)
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
This topic is locked and can not be replied to.