Captcha

Hi

 I have to use captcha in my rails application (For example at time

of register a user) Could anyone please suggest the best and easy to use
captcha gem or plugin in rails. Rails version is 2.3.5

Thanks
Tom

Hi
Thanks for your reply. Actualy i am not using any one…My question
was which gem to use that is latest and easy in usage

Tom

Tom M. wrote:

Hi

 I have to use captcha in my rails application (For example at time

of register a user) Could anyone please suggest the best and easy to use
captcha gem or plugin in rails. Rails version is 2.3.5

Thanks
Tom

Tom, let us say that you are using captcha when users post something. I
assume that you are using SimpleCaptcha

Here is the controller code

def create
@classified = Classified.new(params[:classified])
if @classified.save_with_captcha
redirect_to(‘/’)
else
render :action=>‘new’
end
end

Here is the view code

<%= show_simple_captcha(:object => “classified”, :code_type=>“numeric”)
%>

Here is your application controller code

include SimpleCaptcha::ControllerHelpers

I have here an working craigslist clone application that uses captcha