So I wanted to get a captcha rolling in Ruby on Rails. I decided to use recaptcha because Luis's research is so cool. The tutorial for Ruby recaptcha is fine, but I would have liked an explicit example of what would be in environment.rb.
Rails::Initializer.run do |config|
...
RCC_PUB = '...' #Public key from recaptcha registration
RCC_PRIV = '...' #Private key from recaptcha registration
end
Finally, I had to restart Webrick for those variables to take effect.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment