Forum: Ruby on Rails Storing sessions files elsewhere on EdgeRails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Alain R. (Guest)
on 2006-03-07 22:38
(Received via mailing list)
Hi all,


In a Rails 1.0 project, I successfully changed the sessions storage
location to <RAILS-ROOT>/tmp, by adding


ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update(:tmpdir =>
File.join(RAILS_ROOT, '/tmp'))
in environment.rb

Problem:
--------
I tried to use the same trick in an EdgeRails project, but it doesn't
work : server error, with no msg in the logs.
(MacOS X, with Locomotive.)

When I start the console, I get a new error:

   Loading development environment.
   ./script/../config/../config/environment.rb:47:NameError:
uninitialized constant ActionController

./script/../config/../config/../vendor/rails/actionpack/lib/action_controller/integration_test.rb:16:NameError:

       uninitialized constant
ActionController::Integration::Session::Test
    >>


Any idea?

Alain
This topic is locked and can not be replied to.