Schalk Neethling wrote:
> I have implemented Recaptcha on the registration page of this site:
> http://www.satechevents.co.za/account/register
> 
> I am using the gem here:
> http://www.loonsoft.com/recaptcha/
> 
> Schalk

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;

/Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:278:in
 
`load_missing_constant': uninitialized constant RecaptchaClient 
(NameError)

How are you including the gem? I created an initializer 
(recaptcha_credentials.rb) with this inside;

RecaptchaClient.new(:rcc_pub=>'my_code', :rcc_priv=>'my_code')

...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:
  http://www.loonsoft.com/recaptcha/pkg/

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...

Cheers
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to