I am using file_column 0.3 with the new Rmagick integration. Great. I am getting the error below when I put an entity that has a file_column defined into the Flash. I assume that this has to do with serializing the model with the Rmagick stuff in it? What can I do to get this going? Is there a way around this? Thx, Hunter #<TypeError: no marshal_dump is defined for class Proc> ["/usr/lib/ruby/1.8/pstore.rb:159:in `dump''", "/usr/lib/ruby/1.8/pstore.rb:159:in `dump''", "/usr/lib/ruby/1.8/pstore.rb:138:in `transaction''", "/usr/lib/ruby/1.8/cgi/session/pstore.rb:90:in `update''", "/usr/lib/ruby/1.8/cgi/session/pstore.rb:97:in `close''", "/usr/lib/ruby/1.8/cgi/session.rb:330:in `close''", "/usr/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action_controller/base.rb :895:in `close_session''", "/usr/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action_controller/base.rb :366:in `process_without_session_management_support''", "/usr/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action_controller/session _management.rb:116:in `process''", "/usr/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action_controller/rescue. rb:20:in `process_with_exception''", "/usr/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/dispatcher.rb:38:in `dispatch''", "/usr/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/webrick_server.rb:117:in `handle_dispatch''", "/usr/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/webrick_server.rb:83:in `service''", "/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service''", "/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run''", "/usr/lib/ruby/1.8/webrick/server.rb:155:in `start_thread''", "/usr/lib/ruby/1.8/webrick/server.rb:144:in `start''", "/usr/lib/ruby/1.8/webrick/server.rb:144:in `start_thread''", "/usr/lib/ruby/1.8/webrick/server.rb:94:in `start''", "/usr/lib/ruby/1.8/webrick/server.rb:89:in `each''", "/usr/lib/ruby/1.8/webrick/server.rb:89:in `start''", "/usr/lib/ruby/1.8/webrick/server.rb:79:in `start''", "/usr/lib/ruby/1.8/webrick/server.rb:79:in `start''", "/usr/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/webrick_server.rb:69:in `dispatch''", "/usr/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/commands/server.rb:59", "/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__''", "/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require''", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.2/lib/active_support/dependen cies.rb:213:in `require''", "script/server:3"] [2005-10-30 20:19:45] ERROR `/admin/release/update_release_setup_tracks/50'' not found. 127.0.0.1 - - [30/Oct/2005:20:19:43 PST] "POST /admin/release/update_release_setup_tracks/50 HTTP/1.1" 404 314 http://localhost:3000/admin/release/edit/50 -> /admin/release/update_release_setup_tracks/50
On 10/31/05, Hunter Hillegas <lists-HAWAbpnI61OZ1JSuHaJ1sQC/G2K4zDHf@public.gmane.org> wrote:> I am using file_column 0.3 with the new Rmagick integration. Great. > > I am getting the error below when I put an entity that has a file_column > defined into the Flash. I assume that this has to do with serializing the > model with the Rmagick stuff in it? > > What can I do to get this going? Is there a way around this?um, I didn''t really think about serialization at all, so far. The problem is that the rmagick extensions store a Proc object in file_columns options[:after_assign] hash to trigger the imagemagick functionallity. I didn''t know that this breaks serialization, so far. I can look into this for the next release, but it''ll require some non-trivial changes, so I can''t provide you with a fix right away. Sorry. Sebastian
Gotcha. So, for this release, models with file_column can''t be in the session or flash, right? Just want to make sure I''m understanding the problem.> From: Sebastian Kanthak <skanthak-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Reply-To: <sebastian.kanthak-ZS8b95Whz3sUSW6y5lq3GQ@public.gmane.org>, <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > Date: Mon, 31 Oct 2005 11:03:47 +0100 > To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > Subject: Re: [Rails] File_column+Rmagick plus flash - Broken? > > On 10/31/05, Hunter Hillegas <lists-HAWAbpnI61OZ1JSuHaJ1sQC/G2K4zDHf@public.gmane.org> wrote: >> I am using file_column 0.3 with the new Rmagick integration. Great. >> >> I am getting the error below when I put an entity that has a file_column >> defined into the Flash. I assume that this has to do with serializing the >> model with the Rmagick stuff in it? >> >> What can I do to get this going? Is there a way around this? > > um, I didn''t really think about serialization at all, so far. The > problem is that the rmagick extensions store a Proc object in > file_columns options[:after_assign] hash to trigger the imagemagick > functionallity. I didn''t know that this breaks serialization, so far. > > I can look into this for the next release, but it''ll require some > non-trivial changes, so I can''t provide you with a fix right away. > Sorry. > > Sebastian > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
On 10/31/05, Hunter Hillegas <lists-HAWAbpnI61OZ1JSuHaJ1sQC/G2K4zDHf@public.gmane.org> wrote:> Gotcha. So, for this release, models with file_column can''t be in the > session or flash, right? > > Just want to make sure I''m understanding the problem.unfortunately yes, if you are using the rmagick extension. I''ll try to fix this soon. Sebastian