similar to: custom serialization problem (marshal_dump, marshal_load)

Displaying 20 results from an estimated 3000 matches similar to: "custom serialization problem (marshal_dump, marshal_load)"

2008 Jan 04
2
use of Marshal with wxruby classes
Is it possible to use Marshal with wxruby classes to serialize an application''s state? I tried a minimal example of simply serializing a minimal frame object, and I get the error "no marshal_dump is defined for class MinimalFrame". I don''t fully understand this because I also tried another minimal example of dumping a class which did not defined a marshal_dump, and it
2006 Apr 03
2
no marshal_dump is defined for class Proc
Hello ~ This problem has me puzzled. When users login to my rails app I have the session set up to be stored in the MySQL database for the app. Intermittently, users will get the following error: no marshal_dump is defined for class Proc D:/apps/xampp/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:81:in `dump''
2006 Jun 05
7
":database_manager =>CGI::Session::MemoryStore" doesn''t work properly...???
Hi, We are try to use the "database_manager =>CGI::Session::MemoryStore" for the session management. our website has a lot of "redirect_to". while the website is running under webrick, everything is fine. But when we run the system under aprache/fcgi. the redirect_to seems doesn''t work anymore with the option "MemoryStore" does anyone have the same
2006 Jul 21
0
[RESOLVED] Marshal.dump not dumping entire object?
After sending this I realized that this was a Ruby not Rails issue - but the answer may be interesting for those who choose Marshal over Serialize. So, to close this off I don''t know why marshal.dump wasn''t ''dumping'' all attributes, but adding custom marshaling to PDate did the trick. ala, + def marshal_dump + dumped_obj = [date_precision, ajd,
2006 Aug 01
0
storing object with no "marshal_dump is defined" in session
One of my classes uses the class GSL::Poly. It seems from this error message that rails won''t let me store it in the session. ANy ideas what i can do? Rendering /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error) no marshal_dump is defined for class GSL::Poly /usr/local/lib/ruby/1.8/pstore.rb:348:in
2008 Mar 18
0
no marshal_dump is defined for class StringIO
Hi all, I''m newbie to ROR, anybody know why I would be getting the following error when I use paginating_find with memcache "no marshal_dump is defined for class StringIO" Im just using the plugin straight out with very default options like from the documentation. Thanks in advance. -- Posted via http://www.ruby-forum.com/.
2006 Mar 02
4
LDAP and Rails ???
Hi, We want to start a new website, and we want to use our existing authentication system which is LDAP. Can someone tell me where I can find the information about how to use LDAP in rails ??? Thanks you very much Saiho The mind is its own place, and in itself. Can make a Heaven of Hell, a Hell of Heaven. http://www.geocities.com/sayoyo/ __________________________________________________
2008 Feb 20
2
Rails Edge ActiveSupport::TimeWithZone and Marshalled objects
Hello all, I''m trying to use the new ActiveSupport::TimeWithZone from Edge. The problem seems to be that I have a several-action process to create a Booking. This Booking is stored in the session (session[:booking] = @booking) throughout the actions until the last action is reached and the record is saved to the DB. Using TimeWithZone seems to be producing errors when trying to
2006 Mar 08
4
scrollbar doesn''t show on the right place when using partial( )
Hi, I''m using partial() to connect ours pages togother, however, one of the partials is larger than the other, when it happens, instead of create a scrollbar on the browser, a scrollbar appears at the end of the partial, since the partial is in the middle of the web site. it isn''t really good... So does some one know how to remove the scrollbar on the partial and put it on the
2006 Mar 16
3
image doesn''t show (rhtml path???)
Hi, we try to show an image which is not inside the rails framework, and we are not able to see the image!!!! does someone know how to do this??? our rails is installed on /opt/rails/project1/, so inside "project1" we have all the rails directory like "app", "public", etc.) our image is on the "/usr/images/" so in our link on the rhtml. we use a link
2006 Apr 25
2
how can I access a class variable outside of the class???
Hi we wanted to access a class varaible from outside of the same class, like class klass @@var1 end we found out we can not use the class variable like this: klass.var1 we have to create a class function like class klass @@var1 def var1 return @@var1 end end If anyone know how to access a class variable directly without passing by a function??? Thanks you very much
2007 Dec 25
6
error: no marshal_dump is defined for class Thread
I get this error periodically in backgroundrb.log, but only on my production box (the one running ruby 1.8.5) - my dev box doesn''t get this error. As far as I can tell, everything is working ok, despite the error (I don''t really know how to determine if the jobs are getting threaded successfully, but they are running, that I am sure of). Here''s the dump: no
2006 Apr 27
3
HELP!!!! What is the CGIXXXX.YYY stored in /tmp/ ?????
Hi, We have a website which loads a data file and then create a html file (according to the data file) with more than thousand of combobox at a time (on the same page). The first time we load that page, everything seems fine. all combobox have been created. But when we load a second data file (not the same) the system seems to create some tempoary files which contains the first choice of the
2006 Oct 11
5
Marshal Data too short error with ActiveRecord sess. storage
I''m seeing a "marshal data too short" error with an ActiveRecord store for my session data. Other posts say that this happens when the size of the session data exceeds the size of the "data" column in the sessions table. But my "data" column is a TEXT field so it seems unlikely that I could have blown it out. Has anyone else seen "marshal data too
2006 Jul 14
1
ActiveRecord, can it save more than one row at a time????
Hi, I wonder if there is some fonctions which allow an activeRecord to save more than one row at a time??? As I understand, when we create an object from AC::Base, it represents one row of the table. So if I want to save more than one row, I have to create the object one by one and then save them one by one. If I have 10, it is fine, but if I have more than 1000, so it will a lot of time.... So
2006 Mar 10
1
how can I add a new fct to the class Hash
Hi, We use a lot of "hash" in our program and we want to add a new function to the class, does someone know how to do this???? Thanks you very much Saiho The mind is its own place, and in itself. Can make a Heaven of Hell, a Hell of Heaven. http://www.geocities.com/sayoyo/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best
2006 Apr 03
1
why ruby GC can take only 8 meg of memory????
Hi, As I understand, the GC of Ruby can take only max. 8 meg of memory. So I wonder if there is some reason behide this or it is simply a hardecode feature???? and if I want to increase the memeory, how should I do this??? Thanks you very much!!!! Saiho The mind is its own place, and in itself. Can make a Heaven of Hell, a Hell of Heaven. http://www.geocities.com/sayoyo/
2006 Apr 24
1
using helper which is placed outside of /app/helpers????
Hi, WE wanted to load a helper outside of app/helpers. Actually our helpers is placed in lib/commoncode/ for the ruby classes, we can simply use require "commoncode/myclass", but we can not do the same things with the helpers, we try: helper ''commoncode/ourhelpername'' -> error helper :commoncode/ourhelpername -> error Does someone know how to do this???
2006 Mar 24
1
upload a file to server???
Hi, We would like to upload a file to the server, like user chooses a file with a browse button, then click on a OK button, then the browser send the file to the server, does anyone know how to do it in rails? Thanks you very much Saiho The mind is its own place, and in itself. Can make a Heaven of Hell, a Hell of Heaven. http://www.geocities.com/sayoyo/
2005 Jan 28
17
breakpoint not working
I keep getting: No connection to breakpoint service at druby://localhost:42531 (DRb::DRbConnError) Tries to connect will be made every 3 seconds... This happens every time i run ./script/breakpointer using 0.9.5 on OSX or Windows. Any ideas?