Thursday, October 13, 2011

[Rails] Validates_with problem

I have one big problem: when I try record to db through
update_attributes! (which must save when record invalid). All good, all
validates :field, :presence => true et.c. field ignored, but
validates_with no ignore! So, it raises an error:

> Validation failed: Captcha wrong captcha input

CaptchaValidator works with many models, so I put it to
captcha_validator.rb

But I want to save with ignore this field. What I must do?

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate