[Rails] Re: Sharing sessions between a rails3 app and a rails2 app. Rails 2 app crashes.

2011-08-05 Thread Bob Fitterman
Just an update to this. I was trying to do the same thing, specifically have a Rails3 app read some state from the session set by Rails2. I got it working by doing what Brad M. suggested, making Rails3 aware of the Rails2 class that was missing. I included the definition of ActionController::Fl

Re: [Rails] Re: Sharing sessions between a rails3 app and a rails2 app. Rails 2 app crashes.

2010-08-24 Thread Tim Uckun
> > I'll give that a try and see if it works. > > Another thing I noticed was that rails3 sets a 'session_id' and rails2 > sets a :session_id > Just to follow up on this... Your workaround worked but it only went so far. Now I am getting this error. Session contains objects whose class definiti

Re: [Rails] Re: Sharing sessions between a rails3 app and a rails2 app. Rails 2 app crashes.

2010-08-24 Thread Tim Uckun
> Well it looks like the core issue is that HashWithIndifferentAccess > became ActiveSupport::HashWithIndifferentAccess in rails 3. The > session is a serialized ruby object which somewhere is saying that it > contains an instance of class ActiveSupport::HashWithIndifferentAccess > and rails 2 is c

[Rails] Re: Sharing sessions between a rails3 app and a rails2 app. Rails 2 app crashes.

2010-08-24 Thread Frederick Cheung
On Aug 23, 2:21 am, Tim Uckun wrote: > Hey all. > > I have two apps. One is a rails3 app and the other is a rails 2 app. > Using proxying I am routing actions in the myapp.com/foo to the rails2 > app. > > It almost works! I can set a session variable and a cookie variable on > the first app (mya

Re: [Rails] Re: Sharing sessions between a rails3 app and a rails2 app. Rails 2 app crashes.

2010-08-23 Thread Tim Uckun
On Tue, Aug 24, 2010 at 7:04 AM, gkaykck wrote: > you should share some code here, there could be many reasons for that > Ok it's pretty simple. In rails 2 app I have something like this. Initializers session_store.rb ActionController::Base.session_store = :cookie_store ActionController::Bas

[Rails] Re: Sharing sessions between a rails3 app and a rails2 app. Rails 2 app crashes.

2010-08-23 Thread gkaykck
you should share some code here, there could be many reasons for that On Aug 23, 4:21 am, Tim Uckun wrote: > Hey all. > > I have two apps. One is a rails3 app and the other is a rails 2 app. > Using proxying I am routing actions in the myapp.com/foo to the rails2 > app. > > It almost works! I can