I am using simple_captcha plugin. I have successfully tested it with the my simple form. But my problem is that I get the following error 'secrect code do not match' when I tried it to use with my restful authentication login plugin.
is your text_field for entering captcha character matched with captcha validation params ?
Regard Reinhart http://teapoci.blogspot.com
FREE eBook Ruby & PhP : http://teapoci.blogspot.com/search/label/eBook
yes it does.
user.rb
and my action in user_controller is
[Try it]
def create @letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("") @user = User.new(params[:user]) @user.save_with_captcha if @user.errors.empty? self.current_user = @user
reset_session flash[:notice] = "Thanks for signing up!" redirect_to :controller=>'users',:action=>'index'
else render :action => 'new' end cookies.delete :auth_token end
[2] I dont see def save_with_captcha in User.rb
[3] in your view : <%= show_simple_captcha(:object=>"user",:image_style=>'embosed_silver',:distortion=>'low',:code_type=>'alphabetic') %>
Where is field_text to enter captcha confirmation/verification?
Reinhart
NO it didn't work. 2>I am using simple_captcha plugin 3><%= show_simple_captcha(:object=>"user",:image_style=>'embosed_silver',:distortion=>'low',:code_type=>'alphabetic') %> creates its own text_field
and I have done the same thing for these
NO it didn't work. 2>I am using simple_captcha plugin 3><%= show_simple_captcha(:object=>"user",:image_style=>'embosed_silver',:distortion=>'low',:code_type=>'alphabetic') %> creates its own text_field
and I have done the same thing for these
NO it didn't work. 2>I am using simple_captcha plugin 3><%= show_simple_captcha(:object=>"user",:image_style=>'embosed_silver',:distortion=>'low',:code_type=>'alphabetic') %> creates its own text_field
and I have done the same thing for these
NO it didn't work. 2>I am using simple_captcha plugin 3><%= show_simple_captcha(:object=>"user",:image_style=>'embosed_silver',:distortion=>'low',:code_type=>'alphabetic') %> creates its own text_field
and I have done the same thing for these
I found this,
http://blog.guitarati.com/2007/11/restful-authentication-plus.html
hope it helps
regards
Thank you Carlos. It works.