Schalk Neethling wrote:
I have implemented Recaptcha on the registration page of this site:
I am using the gem here:
Thanks, Schalk. I liked the idea of the plugin (I prefer plugins because
I can jump right in to the code on which the app is dependent) but the
gem seemed easy enough. However, I've followed the instructions and I'm
stuck on this;
`load_missing_constant': uninitialized constant RecaptchaClient
How are you including the gem? I created an initializer
(recaptcha_credentials.rb) with this inside;
...because I thought it was best to keep the environment.rb free of
these things. I've tried putting it in the environment.rb, but that just
breaks, too (same error). Where am I going wrong?! Mongrel loads if I
don't include the RecaptchaClient.new.
Also, I saw this when I was installing the gem;
WARNING: RubyGems 1.2+ index not found for:
RubyGems will revert to legacy indexes degrading performance.
Successfully installed recaptcha-0.1.49
1 gem installed
Installing ri documentation for recaptcha-0.1.49...
Installing RDoc documentation for recaptcha-0.1.49...