I could really use some help understanding what Rails puts into the
session store related to the objects it creates. I’ve found
documentation on how I can put / get info into it, but can’t find the
docs on what Rails puts into it.
I’ve got a simple app that collects some data from the user, stores it
in a db record, allows the user to edit it, display it, and save it to
an XML file. Right now it’s real simple: 1 table.
I want the user to be able to create one and only one record in that
table during a session. There’s a menu item that lets the user enter
and / or edit the data in that record. The first time they select that
item they get a blank form, fill it in, and save it. If they select
that item again, the request gets redirected to the ‘edit’ action and
they get a form with the existing data displayed. I figure to check the
session to see if there’s an entry for that object (like the Cart object
in the Depot app) to drive the logic. I’m assuming this will work,
Can someone point me to some documentation on just exactly what Rails is
putting into the session store, how to access it, etc?