block default validation

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

regards Abhishek

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

ya i got the solution “update_attribute_with_validation_skipping”

Thanks :slight_smile:

ya i got the solution "update_attribute_with_validation_skipping"

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

Fred