You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @rohit-clarion
I also faced same issue when I tried model based flow.
Added captcha, captcha_key in attr_accessible and added custom validation.
Now valid_with_captcha calls valid method and that produces error SystemStackError: stack level too deep so I used is_captcha_valid?
validate :check_captcha, on: :create
def check_captcha
unless is_captcha_valid?
#Remove wrong message : Captcha translation missing: en.simple_captcha.message.user
errors[:captcha].try(:pop)
errors.add :captcha, "does not matched"
end
end
Activity
sagarjunnarkar commentedon Feb 2, 2016
Hello @rohit-clarion
I also faced same issue when I tried model based flow.
Added
captcha, captcha_keyinattr_accessibleand added custom validation.Now
valid_with_captchacallsvalidmethod and that produces errorSystemStackError: stack level too deepso I usedis_captcha_valid?Here is user model.
sapna-prajapati commentedon Feb 2, 2016
I had face the same issue and traversing through infinite loop while applied custom validation. Thanks for correction @sagarjunnarkar. Good Job.