开发者

Simple_captcha image not getting displayed

开发者 https://www.devze.com 2023-01-19 15:37 出处:网络
Captcha image is not displayed on the ui, i开发者_如何学运维nstead it just shows simple_captcha.jpg. When i try to

Captcha image is not displayed on the ui, i开发者_如何学运维nstead it just shows simple_captcha.jpg. When i try to access the image through url i get following error:-

"Postscript delegate failed /tmp/magick-XXKDifRg': @ error/ps.c/ReadPSImage/779:(null)'"

Thanks, Anubhaw


With Rails 3 simple_captcha gem will work if you change the application's route.rb file, for example:

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

Otherwise it produces no image cause it doesn't even arrive to the gem's controller.

0

精彩评论

暂无评论...
验证码 换一张
取 消