IntelliJ Java IDE
The moose likes Ruby and the fly likes Help with rack-Recaptcha Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other Languages » Ruby
Reply Bookmark "Help with rack-Recaptcha" Watch "Help with rack-Recaptcha" New topic
Author

Help with rack-Recaptcha

santoshkumar savadatti
Ranch Hand

Joined: Apr 27, 2010
Posts: 88
I am experimenting with recaptcha for rails 3.For that iam trying out a simple app. I'm using rack-recaptcha Plugin. I have followed all the steps as mentioned on the gem page.But, when i run the app, the reCaptcha always returns false.
Here's my view:


and Here's my controller:
Katrina Owen
Sheriff

Joined: Nov 03, 2006
Posts: 1300
I haven't used the recaptcha gem, so I'm not in a position to suggest gotchas, etc, but I'd be happy to help suggest avenues for troubleshooting.

First up... what does your config look like?
santoshkumar savadatti
Ranch Hand

Joined: Apr 27, 2010
Posts: 88
I added the following lines to my application.rb:



and in my IndexHelper.rb (my controller name is Index) i added:


and in the gemfile,
Katrina Owen
Sheriff

Joined: Nov 03, 2006
Posts: 1300
Are you able to make it work without Ajax? I.e. just using regular redirects?
 
 
subject: Help with rack-Recaptcha
 
Threads others viewed
Ajax Captcha
Youtube embed
Help convert rails 2 snippet to rails 3
Rails 3 remote form processing as HTML
collection_select help
MyEclipse, The Clear Choice