Block default validation


#1

Hello friends,
How to avoid or block the default validation at the time of updating
records?

regards
Abhishek


#2

Abhishek shukla wrote:

Hello friends,
How to avoid or block the default validation at the time of updating
records?

regards
Abhishek

in your validation call pass :on=>:create
validate_presence_of :field ,:on=>:create


#3

ya i got the solution
“update_attribute_with_validation_skipping”

Thanks
:slight_smile:

On Thu, Oct 16, 2008 at 7:12 PM, Sniper A. <


#4

On 16 Oct 2008, at 14:47, Abhishek shukla wrote:

ya i got the solution
“update_attribute_with_validation_skipping”

plain old update_attribute doesn’t validate.
or save(false) also skips validations

Fred