ambethia/recaptcha — Issue #61: Always wrong recaptcha
Author: link-er
Created: 2012-01-09 05:43:50+00:00
State: open

I'm trying to set up Recaptcha in my rails 3.1 app. After I install gem and set up my public and private keys in a config/initializers/recaptcha.rb

Recaptcha.configure do |config|
config.public_key = '6Ldo....'
config.private_key = '6Ldo.....'
end

I use it like this:

<%= f.buttons do %>
<%= recaptcha_tags %>
<%= f.commit_button %>
<% end %>

controller where I need to check the recaptcha I use verify_recaptcha. And no matter what, 'verify_recaptcha' returns false and so the form posting doesn't succeed.