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:

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

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