I have one route that is displaying a list of objects and the user is able to check the objects/rows that are displayed. Next they click a button that goes to another route that needs the user to enter in information about the things that were selected.
Now here’s where my confusion comes in. How do I pass the list of objects or a list of the ids for the objects to the other route? The other route is using an ArrayController already for a list of options on that route (might be the incorrect way to do that)
I tried using transitionToRoute in the first list’s controller and passed in a list of the selected objects but it gives me
More context objects were passed than there are dynamic segments for the route
I figure I’m not using the nested routes correctly and that maybe I need a resource and then put each route under the resource, and the common parent resource manages the selected items?
What does everyone else normally do? What is the nested route structure supposed to look like in this scenario? I tried the needs option but I think I may have done it incorrectly
If this is confusing or you need more info let me know and maybe I can draw a representation of what I am doing