Hi, I’m a little confused about sessions. I have two objects, object
“Apple” and object “Banana”. These two objects have an N:M
relationship. What I am doing is listing All of the Banana objects that
are associated with a single Apple, then below that listing all of the
Banana objects not associated with that same Apple. The user is then
allowed to change the associations for this Apple. What I want to do is
to save this information between browsing sessions. I need to do this
for every Apple.
Currently, the Bananas are getting stored in two separate arrays and
being displayed that way. Trying to save these arrays as session
variables has been unsuccesful. If I only had one Apple, I think I
could store that apple with @session[:Apple]? Anyway, any help you can
offer is greatly appreciated. Thanks.