Have rails ignore validation

Hi,

I’m looking for a way to tell rails to ingore the validation just in
one specific instance.
I have one function in my controller where I wanna save the object no
matter what.
Is there a way to do that?

MarcS wrote:

Hi,

I’m looking for a way to tell rails to ingore the validation just in
one specific instance.
I have one function in my controller where I wanna save the object no
matter what.
Is there a way to do that?

Sure.

whatever.save_with_validations(false)

–Al Evans

thanks

I’ll try that