similar to: Session-Problem: singleton can''t be dumped

Displaying 20 results from an estimated 40000 matches similar to: "Session-Problem: singleton can''t be dumped"

2006 Mar 22
1
Please: Desperately Seeking Session expiration (DRbStore)
Hello, this is killing me: i can''t find a way to let idle sessions expire after a certain period of time. If they don''t expire, they will pile up until there''s no more memory available. Please, can anybody give me a hint? Basically, all I need is a hash or list with all the sessions in DRbStore. Greetings Michael Kastner
2010 Jun 29
0
singleton can't be dumped in rails session
Hi, I am doing an integration with commission junction using SOAP to get the result. It is working fine for me. My problem is I have to add the pagination so I have used will_paginate for pagination. For each page I am doing a call to commission junction and getting the result which make a performance bottleneck for my application. To solve this I have decided to store the response in session and
2008 Dec 05
3
"singleton can't be dumped," but not using singleton
An action handler (select_person_by_name) in my controller class assigns into session, and then does a redirect_to. I get the error "TypeError (singleton can''t be dumped):" followed by a stack trace that doesn''t cross my code. Google tells me this is ordinarily caused by assigning a singleton instance into session, but what I''m assigning is an ordinary String.
2007 Jun 08
0
SimplaTable with error: singleton can't be dumped
Hello, My first PDF report from rails. When i try to render "tab.render_on(pdf)", I get that error message. Thanks any help, Helder ================================================================= TypeError in ContasController#plano singleton can''t be dumped RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace
2006 Mar 22
0
Session accounting with DRbStore: how?
Hello, I''ve setup Session storage for DRbStore. Now, how can I retrieve the stored sessions from DRbStore? I could neither find documentation nor an example on this. Any help is appreciated. Greetings Michael
2006 Mar 16
6
Newbie question - Rails without database
Hello to all, I am entirely new to Ruby and also to Ruby on Rails. As far as I understand, Rails builds its model according to the a specified table structuree in in the database. However, most of my applications, are for the most part (except some backend CRUD stuff) not database centric. They do a lot of calculation for the user. So, how can I create a model, when no database is needed,
2006 Jul 09
4
concurrent ajax requests
Hello, maybe someone on this list can help me. I am trying to implement a sort of long database search. In order inform the user about what''s happening, status messages should be displayed to the user while the request is working. e.g. - starting search process - currently searching through database A - found 10 results - currently searching through database B - found 25 results -
2008 May 07
2
Can I add a singleton action to @controller in a test?
All, I want to create a mock action to test a filter in a functional test, e.g.: # Simplified example def test_my_filter # Singleton action def @controller.foo assert # something end ActionController::Routing::Routes.draw do |map| map.connect '':controller/foo'', :action => ''foo'' end get :foo end My log files show that
2006 Oct 16
0
MiddleMan singleton issue in start script
Hi all, I found this thread in the August backgroundrb-devel archives. >This means that in order to reference the new_worker method *in the >instance that is running in the drb server* you can''t do that >directly. In order to spawn other workers from within a worker I >would have to change the MiddleMan class to be a singleton. This way >you could grab the one instance of
2009 Oct 09
0
[LLVMdev] Is ExecutionEngine always meant to be a singleton?
On Oct 8, 2009, at 9:19 AM, Kenneth Uildriks wrote: > Right now, on X86, creating multiple ExecutionEngines in the same > process causes an assertion. > Yes. This is by design. > If it's supposed to always be a singleton, should there be a way to > get the process's ExecutionEngine instance? > I can't see why. You could make a server to process llvm code. >
2009 Oct 08
4
[LLVMdev] Is ExecutionEngine always meant to be a singleton?
Right now, on X86, creating multiple ExecutionEngines in the same process causes an assertion. If it's supposed to always be a singleton, should there be a way to get the process's ExecutionEngine instance? This would, among other things, allow "lli" to execute bitcode that itself uses the ExecutionEngine.
2006 Oct 31
0
PSARC/2006/289 Rationalized IFF_NOFAILOVER for IPMP Singleton
Author: meem Repository: /hg/zfs-crypto/gate Revision: 40aa11f97fc0148333e53145eebb12da7e84dec5 Log message: PSARC/2006/289 Rationalized IFF_NOFAILOVER for IPMP Singleton 6397456 IPMP needs to support *just* link-based failure detection with singleton Files: update: usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c update: usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_tables.c update:
2012 Mar 16
2
Singleton pattern
Hi all, I know it may not have much sense thinking about a Singleton Pattern in an R application which doesn't use any OOP facilities, however I'm curious to know if anybody faced the same issue. I've been googling but using "singleton pattern" as a key word leads to typical OOP languages like Java or C++ among others. So my problem is that I'd like to ensure some very
2008 May 21
2
Replacing ActiveRecordStore::Session with a custom model
Has anyone managed to replace ActiveRecordStore::Session with their own model? In the source (http://dev.rubyonrails.org/browser/trunk/actionpack/lib/ action_controller/session/active_record_store.rb) it says you can override the default by setting CGI::Session::ActiveRecordStore.session_class = MySessionClass I have tried doing this in a number of ways but I get all kinds of weird errors, as
2006 May 22
2
using Singleton with Prototype
Hello all. I''m writing my own object using prototype and I wonder how you write and call only one instance of class. Can anyone share his idea of singleton? thanks Gregor ---------------------------------------------------- Gdy nadchodzi przełomowy moment w historii, musisz zdecydować, po czyjej stronie będziesz. "X-Men: Ostatni bastion" - w kinach od 26 maja.
2007 Mar 13
1
Opening the singleton class of mocked objects
I wrote a plugin [1] a while ago that lets me do validations on a single AR instance. Instead of defining validations in an AR class, I can define them on a AR instance''s singleton class: class << @video validates_presence_of :title end One of my specs mocks Video.find, and the above code is run on the mock object. When I run the spec, I get the expected undefined method
2006 Oct 29
1
ActiveRecordStore: Where is the session id generated?
Where can I find the algorithm that generates the session ids for the ActiveRecordStore (sql session)? Thanks, Shimon Amit --~--~---------~--~----~------------~-------~--~----~ 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
2006 Oct 16
4
Singleton Pattern in RoR
Hi all how can I implement the singleton patter in RoR? thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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
2007 Jun 08
0
problem with rake db:sessions:clear and session_table_name
The comments in: actionpack/lib/action_controller/session/activerecord_store.rb document this method for changing the session table_name: # You may configure the table name, primary key, and data column. # For example, at the end of config/environment.rb: # CGI::Session::ActiveRecordStore::Session.table_name = ''legacy_session_table'' #
2006 Nov 04
0
Session::ActiveRecordStore
Hi, I''m trying to use the ACtiveRecordStore option to accelerate the respone time, since I will a hugo object stored inside the session object. Everything works fine, however, I want to know if the "sessions" table must be set on the default database like pro. test, dev. Or Can I tell rails for the sessions table you should look at "This" database, instead of the