I'm not having a good day.
I'm busy updating my site to use Rails in its entirety. I need to store some values in sessions - simple, think I.
will do the trick.
session[:booking_id] = booking.id
Yet every time I navigate to the page that does the following
the application bombs out with a cannot find Booking with a null ID.
booking = Booking.find(session[:booking_id])
Eventually, I look at the C:/Windows/Temp folder on the machine running WEBrick. And every single request from Camino is starting a new session! No wonder I cannot access the data I stored in there!
I have no idea why this is happening - everything looks fine in Firefox (Windows) and Safari (Mac). A quick test in IE 6 (Windows) shows it working there as well (although I can't find the session file that WEBrick created?!?
This is made even worse by the fact that Safari no longer opens my favoured home page after a recent security update.
Arses. It's just happened with Safari now. Or has it? Ruby Session files seem to be appearing in both C:/Windows/Temp and C:/Documents and Settings/rahoul.baruah/Temp ... which is the correct one? And would it help if I just switched to ActiveRecordStore?