Hello friends,
How to avoid or block the default validation at the time of updating
records?
regards
Abhishek
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
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
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