Elliott Blatt
2010-May-18 15:52 UTC
ruby-recaptcha seems be broken or has significant limitation
I''ve installed the ruby-recaptcha gem as instructed here: http://bitbucket.org/mml/ruby-recaptcha/wiki/Home Here are the steps that I''ve comleted: 1. installed the gem 2. added config.gem ''ruby-recaptcha'' environment.rb: 4. modified action_controller.rb class ApplicationController < ActionController::Base include ReCaptcha::AppHelper 5. modified application_helper.rb like so: module ApplicationHelper include ReCaptcha::ViewHelper The inclusion of the Recaptcha::ViewHelper works. Meaning this tag: <%= get_captcha(:options => {:theme => ''clean''}) %> Renders an image. However, the controllers are another can of worms: calls like: if validate_recap(params, @user.errors) && @user.save fail with the following message: NoMethodError (undefined method `validate_recap'' for #<ActionView::Base:0x734b578>): Which tells me that the module is not being mixed into application controller and not then not inherited. Does anybody have any ideas? Is ruby-recaptcha a reputable product? -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.