-
Add gem in gemfile. gem 'ringcaptcha', '~> 0.0.2' and run bundle install.
-
Create new scaffold say home, where index page is root page of application.
-
In app/views/homes/index.html.erb file add javascript files of ringcaptcha widget.
-
In application, On click of button "Check RC", call ajax method /homes_controller.rb/valid_rc
-
In valid_rc mathod, initialize ringcaptach gem by using RingCaptcha::RingCaptcha.new(app_key, secret_key).
-
After initializing gem call is_valid method of ringcaptch with pincode and token key.
-
In valid_rc.js.erb file if pin code is valid then show error else show Rc details.
-
Notifications
You must be signed in to change notification settings - Fork 0
densitylabs/ringcaptcha-rails-example
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published