search for: database_manager

Displaying 12 results from an estimated 12 matches for "database_manager".

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 &qu...
2006 May 17
3
Session in ActiveRecordStore
The Agile book seems to say I should specify this as follows, probably in the environments.rb: ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:database_manager] = CGI::Session::ActiveRecordStore BUT the environments.rb file would have me Un-Comment this: config.action_controller.session_store = :active_record_store Anyway, I''ve tried both, and in both cases it generates new sessions all too quickly, so that no page sees the same session...
2006 Apr 20
12
memcache, sessions, fragments, oh my!
Hi all - I am trying to get rails to use memcache for sessions and fragment caching. I''d also like to use the same connection for general caching of this and that. I''m following the instructions here: http://wiki.rubyonrails.com/rails/pages/HowtoChangeSessionStore and hitting a brick wall. I''m using the new memcache-client since from what I''ve read
2008 Feb 09
1
how to check the config.action_controller.session options ?
...annot get it back in the script/console .. :session_key=>"_session_id" !!! why ? >> ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS => {:session_key=>"_session_id", :cookie_only=>true, :session_path=>"/", :prefix=>"ruby_sess.", :database_manager=>CGI::Session::CookieStore, :tmpdir=>"/Users/myself/tmp/sessions/"} how can get back the :session_key and :secret in my controllers ? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscri...
2005 Aug 06
2
Problem with 0.13.1 ActiveRecordStore with PG 8.0.3.
Hi, I put the following in my environment.rb file: ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update (:database_manager => CGI::Session::ActiveRecordStore) Runnning WEBrick via "script/server" and trying to load any page served by a controller results in an error like the following: #<ActiveRecord::StatementInvalid: ERROR: null value in column "id" violates not-null constraint : INSE...
2006 Jan 17
10
ActiveRecord + memcache = cached_model
...:compression => true, :debug => false, :namespace => ''my_rails_app'', :readonly => false, :urlencode => false } CACHE = MemCache.new memcache_options CACHE.servers = ''localhost:11211'' session_options = { :database_manager => CGI::Session::MemCacheStore, :cache => CACHE, :session_domain => ''trackmap.robotcoop.com'' } ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update session_options You will need separate namespaces for production and development, if using mem...
2006 Jan 30
0
cached_model-1.0.1 ActiveRecords + memcache
...:compression => true, :debug => false, :namespace => ''my_rails_app'', :readonly => false, :urlencode => false } CACHE = MemCache.new memcache_options CACHE.servers = ''localhost:11211'' session_options = { :database_manager => CGI::Session::MemCacheStore, :cache => CACHE, :session_domain => ''trackmap.robotcoop.com'' } ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update session_options You will need separate namespaces for production and development, if using mem...
2005 Dec 25
1
How to use mem_cache_store?
...hreshold => 10_000, :compression => true, :debug => false, :namespace => ''ruby-forum.com'', :readonly => false, :urlencode => false } CACHE = MemCache.new memcache_options CACHE.servers = ''localhost:11211'' session_options = { :database_manager => CGI::Session::MemCacheStore, :cache => CACHE, :session_domain => ''ruby-forum.com'' } ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update session_options <<<<<<<<<<<<<<<<<<<<<<<<<...
2006 Feb 12
3
memcache-client/cached_model help
...:compression => true, :debug => true, :namespace => ''eztrip'', :readonly => false, :urlencode => false CACHE.servers = ''127.0.0.1:11211'' session_options = { :database_manager => CGI::Session::MemCacheStore, :cache => CACHE, :session_domain => ''www.eztrip.com'' } ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update session_options I also changed a few models to extend CachedModel but am having trouble getting it to work. I can ma...
2005 Dec 13
3
Forcing the session-id
We''re going to have problems keeping cookies across domains. We want people to shop in one domain (e.g. "booksareus.com") and then checkout on the same server securely under a different domain (e.g. "greatbooks.com"). When we make the jump to the secure domain (the checkout link) can we submit the user''s session ID along with it and have it
2005 Dec 16
11
mysql mem-tables vs. memcached
Could someone please elaborate on the technical differences and practical impact of whether choosing memory-based tables in MySQL or using memcached. I got this far on my own: It seems that MySQL uses the NDB engine for transaction-safe memory access in a cluster. the memory storage engine seems to be faster but not synchronizable by any means in a cluster. memcached seems to be ultimately fast
2005 Aug 08
7
Problems with ./scripts/generate scaffold
Hi all, I''m new to rails after having used perl for most of these things, and am trying to get my head around the generate script for a project playing around with. If I do: ./scripts/generate controller Device I get app/controllers/device_controller.rb where I can then add: scaffold :device However, if I want to actually generate the scaffolding so I can make some changes: