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.
精彩评论