Andy
2010-Sep-09 21:29 UTC
Simple Captcha - files still in "/tmp" directory and not displaying
I''m trying to use the Rails3 Simple Captcha version from here: http://github.com/galetahub/simple-captcha It''s working 100% fine on my local environment. In Production, I had to point the "convert" command to the correct directory and then reinstall ImageMagick with the FreeType lib. Now I''m not getting any errors in production.log but the images are coming up as broken images. Any ideas? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Andy
2010-Sep-09 22:59 UTC
Re: Simple Captcha - files still in "/tmp" directory and not displaying
I''m starting to narrow down the problem. The files are being created in the "/tmp" folder. But when image.rb passes it up to simple_captcha_controller.rb, the files are coming through empty. The versions in "/tmp" are not empty files though. I''m using a CentOS server I configured myself (rather than a Rails host like EngineYard) so I''m guessing it''s some sort of server issue. On Sep 9, 5:29 pm, Andy <andym...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m trying to use the Rails3 Simple Captcha version from here:http://github.com/galetahub/simple-captcha > > It''s working 100% fine on my local environment. > > In Production, I had to point the "convert" command to the correct > directory and then reinstall ImageMagick with the FreeType lib. > > Now I''m not getting any errors in production.log but the images are > coming up as broken images. > > Any ideas?-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Andy
2010-Sep-09 23:08 UTC
Re: Simple Captcha - files still in "/tmp" directory and not displaying
Found the solution: https://rails.lighthouseapp.com/projects/8994/tickets/4063-rails-30-beta1-send_file-with-0-byte On Sep 9, 6:59 pm, Andy <andym...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m starting to narrow down the problem. > > The files are being created in the "/tmp" folder. > > But when image.rb passes it up to simple_captcha_controller.rb, the > files are coming through empty. > > The versions in "/tmp" are not empty files though. > > I''m using a CentOS server I configured myself (rather than a Rails > host like EngineYard) so I''m guessing it''s some sort of server > issue. > > On Sep 9, 5:29 pm, Andy <andym...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > I''m trying to use the Rails3 Simple Captcha version from here:http://github.com/galetahub/simple-captcha > > > It''s working 100% fine on my local environment. > > > In Production, I had to point the "convert" command to the correct > > directory and then reinstall ImageMagick with the FreeType lib. > > > Now I''m not getting any errors in production.log but the images are > > coming up as broken images. > > > Any ideas?-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.