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?
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs