similar to: Storing sessions files elsewhere on EdgeRails

Displaying 20 results from an estimated 3000 matches similar to: "Storing sessions files elsewhere on EdgeRails"

2006 Mar 29
5
EdgeRails: "undefined method `weight'' for #<Hash:
Hi all, I was playing with the sample project found on the Wiki at http://wiki.rubyonrails.com/rails/pages/HowToIntegrateFerretWithRails , and everything was working fine, ... till I moved to EdgeRails : undefined method `weight'' for #<Hash:0x22c7150> (full error thread below) Any idea? Alain
2006 Jul 11
1
Dynamically setting the session domain?
Does anyone know a way to dynamically change the session_domain option of ActionController::CgiRequest? I want to have a login section on an index page (www.example.com) that takes a subdomain, username, password, authenticates, then redirects to http://#{subdomain}.mysite.com. I need to set the session_domain option (to the subdomain) dynamically so the cookie can be read when the user arrives
2005 Dec 21
7
Are there any disadvantages to using locomotive
Hi: I had some issues and so switched to locomotive. I find it awesome. 1 click and its done. My question - what disadvantages are there, if any? What do I lose by using such a convenient solution. speculation as well as facts are welcome but please define which you are putting forwards. Thanks in advance, bruce
2006 Apr 12
1
Dealing with documentation : how to find REAL doc ?
Hi there Rails buddies ! After some weeks working with Rails and having it running on different platforms, I definitively find the documentation not enough precise. But those are my thoughts and I hope somebody can point my out to the good way to find something. For example, I currently look for information about session managment, and find the code :
2006 Mar 13
4
Storing model object in session in EdgeRails
I''m having a problem with sessions since upgrading to EdgeRails. Against certain recomendations, I''m storing the current user''s model object in the session. This worked fine in 1.0 and earlier, but now I am noticing that any time I reference the associated objects for an object stored in the session, the associated objects get copied into the session! For example,
2006 Aug 03
0
Sharing sessions across subdomains
Has anyone else experienced this strange behavoir with sharing sessions across subdomains? I have in development.rb ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update(:session_domain => ''.localhost.com'') If I create a session at foo.localhost.com then go bar.localhost.com a session is created (with host localhost.com) and everything works fine. But if I then go
2006 Feb 01
1
Unwanted sessions after routing error
I''m building a session-less application and have set "session :off" in the base controller (ApplicationController in application.rb). Unfortunately, I still see session files appearing in /tmp/ruby_sess.* -- and the cause of these files is when a routing error occurs. Whenever a bad URL comes in, for example <http://localhost:3000/not/a/chance/in/hell>, the
2008 Jul 15
1
sex expire time for Sessions in memcached
Hi all, I have a problem with expiring sessions in the case with using mem_cache_store. I''ve been using ActiveRecord session store till now and expired them with SQL query. Yesterday I switched to memcache for storing sessions, however I can''t set an expireation period. My current config is this: ======================== memcache_options = { :c_threshold => 10_000,
2006 Feb 09
1
session cookie expiration
from the Agile Book, i see i can set the absolute session expiry time via: ActionController::CGIRequest::DEFAULT_SESSION_OPTIONS[:session_expires] however, I don''t see anything about what the actual default setting is when a session is created. also, is there a way to set the expiration to happen when the browser is closed? in PHP, this can be accomplished using
2008 Feb 09
1
how to check the config.action_controller.session options ?
when setting it in my environment.rb config.action_controller.session = { :session_key => ''_myapp_session'', :secret => ''3a64394bb895f1f05e0c07f71127d93d'' } I cannot get it back in the script/console .. :session_key=>"_session_id" !!! why ? >> ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS =>
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"
2006 Mar 03
1
number_to_currency() helper == non DRY == could be improved
Hi all, Apologies in advance if I got this one wrong, I''m still just a newbie ;-) Going through the Apple ADC RoR tutorial it suddenly occurred to me that the ''number_to_currency()'' helper method was not DRY streamlined. Scenario:: The "number_to_currency()" methods options hash works great when I need to dynamically display different currencies when I
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
2005 Dec 18
2
EdgeRails with other Gems like RMagick
I am using EdgeRails, and have some of the plugin''s using gems such as Rmagick which are included through a command similar to "require_gems ''rmagick''". Curious how to handle such attempts at inclusion when I am no longer bound to the system gems and am using the code strictly within vendor/rails and such. Is there a way to point require_gems to another
2006 Aug 02
4
RadRails and EdgeRails
Anyone know how to setup EdgeRails with RadRails ? Stuart
2006 Mar 10
0
Session management changed in EdgeRails?
Hi, I''ve been developing an application in Rails 1.0 and finally made the switch to Edge for has_many :through and polymorphism. I''m currently storing the authenticated user object (User model) in the session. This has worked well up until upgrading to EdgeRails. What I do is set @user = session[:user] in my controllers and then access the various @user associations such as
2006 Feb 06
0
how can I retrieve a session based on the session-id
I am trying to mix Flash and RoR (for fileupload without pagerefresh) Unfortunately the requests originating from the flashplayer do not have the right sessionid. So I tried to hackaround with reading the _session_id form the cookie and sending it together with the fileupload POST from the flashplayer to the webserver. But how can i retrieve the session based on the session_id at my controller
2006 Feb 12
0
problem serving files which start with newlines
I''m working on a rails app that stores files in a database and allows users do download them again. But when a file starts with newlines they get lost in the process and the browser marks the download as failed because the received filesize is smaller then the expected filesize (the difference is exactly the newlines missing). To reproduce this place something like this an a
2006 Jan 30
0
cached_model-1.0.1 ActiveRecords + memcache
The new version of cached_model features bug fixes and tests! Bugs fixed: Updating a model no longer stores associations into the cache. This could cause strange, hard-to-debug bugs when an invalid set of assocations was retrieved along with a cached model. Reloading a model refreshes the cache. When CachedModel::find can''t understand query params and a single result is
2005 Dec 25
1
How to use mem_cache_store?
Hi, I''m trying to use mem_cache_store for sessions. I have installed the server and the gem and have added the following to my config/environment.rb: >>>>>>>>>>>>>>>>>>>>>>>>> memcache_options = { :c_threshold => 10_000, :compression => true, :debug => false, :namespace =>