2010-10-07 115 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 

否則它不會產生圖像的原因,它甚至不到達寶石的控制器。