开发者

Simple_captcha image not getting displayed

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜