Ss Kk | 15 May 12:16

Re: CAPTCHA gem

Axel Etzold wrote:
> -------- Original-Nachricht --------
>> Datum: Thu, 15 May 2008 17:55:06 +0900
>> Von: Ss Kk <1shweta2 <at> gmail.com>
>> An: ruby-talk <at> ruby-lang.org
>> Betreff: CAPTCHA gem
> 
>> Application Trace | Framework Trace | Full Trace
>> 
>> d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
>> `gem_original_require'
>> d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
>> `require'
>> 
> 
> Hello,
> 
> do you require rubygems in your script, ie., do you have a line
> 
> require "rubygems"
> 
> before
> 
> require "captcha" ...
> 
> in your script ?
> Maybe you can post some shortened bit of code ...
> 
> Best regards,
> 
> Axel

Hi,
    Thanks for your reply Butit is not making any change ,Still same 
error

Here is code of my user controller:
require 'rubygems'
require 'captcha'//Gives error to this line

class UserController < ApplicationController

  def register
     var= CAPTCHA::Web.new
     var.to_html("captcha_temp")
  end
end

And code of Captcha file: ,you will get :

"D:\ruby\lib\ruby\gems\1.8\gems\captcha-0.1.2\lib\captcha.rb"
(If installed Captha gem)

Tell me what's going wrong.
--

-- 
Posted via http://www.ruby-forum.com/.


Gmane