Friday 15 June 2012

simple_captcha doesn't display image on production, rails 4 -



simple_captcha doesn't display image on production, rails 4 -

in browser console shows error. thought what's wrong?

failed load resource: server responded status of 500 (internal server error) http://innovationgateway.md/simple_captcha?code=be5a034949264cf75ea871c605781ff4b892ded5&time=1415635452

as far know default directory saving image file /tmp think it's worth seek alter directory within project that:

simplecaptcha.setup |sc| sc.tmp_path = rails.root.join('public').to_s end

also seek comment out next config, assuming you're using nginx

config.action_dispatch.x_sendfile_header = 'x-accel-redirect'

but on vps works without config...

or maybe simple_captcha doesnt generate file need check.

ruby-on-rails ruby-on-rails-4

No comments:

Post a Comment