On 3 Oct 2008, at 15:21, Neil Cauldwell wrote:

>
> Frederick Cheung wrote:
>> On 3 Oct 2008, at 14:15, Neil Cauldwell wrote:
>>
>>> 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;
>>>
>> I used that gem once. I ended up requiring the gem from an  
>> initializer
>> and reopening this class:
>>
>> module ReCaptcha
>>   module AppHelper
>>     RCC_PUB = 'your key here'
>>     RCC_PRIV = 'your key here'
>>   end
>> end
>>
>> which seemed to work. I vaguely recall the setup instructions being a
>> bit out of date
>>
>> Fred
>
> Thanks Fred. Since the last post I've moved to the plugin, however,  
> I'm
> struggling with that one, too. It should be insanely simple; I just  
> need
> to set the public and private keys as variables in the environment.rb
> (or an initializer, if applicable) - but I just can't get it to work;
>
> http://pastie.org/284245
>
If you're going that way you need to set ENV['RECAPTCHA_PUBLIC_KEY'],  
which is not the same thing as RECAPTCHA_PUBLIC_KEY

Fred
> I can hack the plugin to use the keys as strings without using  
> variables
> (means removing an 'unless' condition, too), but that defeats the  
> point
> of a well test plugin. Can you see what I'm doing wrong here?
>
> -- 
> 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