Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Hook into ActiveModel errors attribute #2

Open
calebperkins opened this issue Nov 8, 2010 · 1 comment
Open

Hook into ActiveModel errors attribute #2

calebperkins opened this issue Nov 8, 2010 · 1 comment
Labels

Comments

@calebperkins
Copy link

A nifty feature Ambethia's Recaptcha gem supports is the ability to add an error to an object if the recaptcha is invalid, like so:

 if verify_recaptcha(:model => @post, :message => "Oh! It's error with reCAPTCHA!") && @post.save
    # some logic
@achiurizo
Copy link
Owner

hm yes this seems useful, i'll look into it =)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants