Skip to content

Commit

Permalink
Modified README.rdoc -> added info about :message parameter for verif…
Browse files Browse the repository at this point in the history
…y_recaptcha
  • Loading branch information
introkun committed May 27, 2009
1 parent c205b8c commit 6d65650
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.rdoc
Expand Up @@ -32,8 +32,13 @@ isn't this a model validation? Because that violates MVC. Use can use it like th
like. Passing in the ActiveRecord object is optional, if you do--and the captcha fails to verify--an
error will be added to the object for you to use.

Some of the options available:

<tt>:model</tt>:: Model to set errors
<tt>:message</tt>:: Custom error message

respond_to do |format|
if verify_recaptcha(:model => @post) && @post.save
if verify_recaptcha(:model => @post, :message => 'Oh! It's error with ReCaptcha!') && @post.save
# ...
else
# ...
Expand Down

0 comments on commit 6d65650

Please sign in to comment.