2010-10-07 73 views
1

Captcha image is not displayed on the ui, instead it just shows simple_captcha.jpg. When i try to access the image through url i get following error:-Simple_captcha图像没有得到显示

“后记委托失败/tmp/magick-XXKDifRg': @ error/ps.c/ReadPSImage/779:(null)的”

感谢, Anubhaw

+0

如何生成验证码 – zod 2010-10-07 15:32:22

+0

我正在使用simple_captcha插件生成验证码 – Anubhaw 2010-10-08 04:39:00

回答

0

使用Rails如果你改变了应用程序的route.rb文件3 simple_captcha宝石会的工作,例如:

YourApp::Application.routes.draw do 
#... 
    match 'simple_captcha/:id', :to => 'simple_captcha#show', :as => :simple_captcha 
#... 
end 

否则它不会产生图像的原因,它甚至不到达宝石的控制器。