How to test recaptcha in localhost?

417 views
Skip to first unread message

Fahim Patel

unread,
Nov 2, 2012, 1:44:39 AM11/2/12
to rubyonra...@googlegroups.com
Hi all,

I follow All the steps for recaptcha , but i am confused how to test on my local host.
Because when we register in google recaptcha it ask for domain URL, i stuck here.

Q  What should i enter in domain url ?

Hope that you all understand the problem.

Thanks 

Regards
Fahim Babar Patel


Jordon Bedwell

unread,
Nov 2, 2012, 2:01:47 AM11/2/12
to rubyonra...@googlegroups.com
Hi,

On Fri, Nov 2, 2012 at 12:44 AM, Fahim Patel <paf...@gmail.com> wrote:
> I follow All the steps for recaptcha , but i am confused how to test on my
> local host.
> Q What should i enter in domain url ?

Don't, mock the entire reCaptcha part
http://rubydoc.info/gems/rspec-mocks/frames

Fahim Patel

unread,
Nov 2, 2012, 2:34:59 AM11/2/12
to rubyonra...@googlegroups.com
thanks for reply 

You not got my issue.
I  want to test manually .
I follow this link for recaptcha.

Its a good page.i implement all the lines in development.

But when i enter a captcha value , user registration is failing.   
So it is possible to run recaptcha on localhost or i have to deploy me code in production .


Hope now you understand the situation.

Jordon Bedwell

unread,
Nov 2, 2012, 2:38:23 AM11/2/12
to rubyonra...@googlegroups.com
Hi,

On Fri, Nov 2, 2012 at 1:34 AM, Fahim Patel <paf...@gmail.com> wrote:
> But when i enter a captcha value , user registration is failing.
> So it is possible to run recaptcha on localhost or i have to deploy me code
> in production .

My guess is it's most likely not reCaptcha that's failing but
something else, gem install pry-rails and add a binding.pry into the
method causing the issue and make sure it is, since reCaptcha works in
the browser via localhost by default (as per Google specs) I would
believe first that it's something else causing the issue.

Fahim Patel

unread,
Nov 2, 2012, 2:45:41 AM11/2/12
to rubyonra...@googlegroups.com
Hi, 
I also read that recaptcha work on localhost.But my problem come when i 
register a domain in recaptcha key generation form than what should i enter there ?

And with out key i can do any thing ?

 
Reply all
Reply to author
Forward
0 new messages