you should share some code here, there could be many reasons for that On Aug 23, 4:21 am, Tim Uckun <timuc...@gmail.com> 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 (myapp.com) and then read them on the second app > (myapp.com/foo). > > It only works the first time though. If I go back to myapp.com and > then revisit myapp.com/foo the rails2 application crashes with the > error NameError (uninitialized constant > ActiveSupport::HashWithIndifferentAccess): > > This error is raised when any attempt to access the session variable is made. > > I first thought it was because rails3 set a session['session_id'] and > rails2 set a session[:session_id] so wrote some code to delete > session['session_id'] but that didn't solve the problem. > > The setup is pretty straightforward. They both use cookie sessions > (for now). They both have the same key, secret and domain. nginex does > the proxying. > > So what is going on here? Any clues? Why does it work the first time > but crash if you hit the back button and the forward button?
-- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.