Looking for a best practice here. I have an object, List, that I’m
editing in a form. List is a collection of Target objects.
One of the things that I can do in my List edit is create a new Target.
I am trying to come up with the best way to be able to assign my new
Target object to my List object.
I know that I can:
Create a hidden field in my form that holds the list id and get
access to it that way in my “create_target” action.
I could store the list id in the session (in a key such as
“current_list”) as soon as I hit the “edit list” function and have
access to it that way.
Are there any other options?
Anyone care to advise on a best practice?