Hi all, I recently switched from the default session store to :active_record_store, and my file uploading (using attachment_fu) has broken. When I select a file to upload, using a standard form, and click submit, I am shown an error page: Status: 500 Internal Server Error can''t dump File In the log this shows up as "TypeError(can''t dump File)". The stack trace suggests that active record store is the culprit - does anyone know how to fix this? Many thanks, Adam --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Jun-14 10:51 UTC
Re: Active Record session store breaks file uploads
On Jun 14, 2:10 am, Adam <adampennycu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > I recently switched from the default session store > to :active_record_store, and my file uploading (using attachment_fu) > has broken. When I select a file to upload, using a standard form, and > click submit, I am shown an error page: > > Status: 500 Internal Server Error > can''t dump File > > In the log this shows up as "TypeError(can''t dump File)". The stack > trace suggests that active record store is the culprit - does anyone > know how to fix this? >Sounds like it''s trying to put something (a File) in the session that can''t be stored in the session. Fred> Many thanks, > Adam--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@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 -~----------~----~----~----~------~----~------~--~---