Update: After mulling this over for a few hours, I have concluded that I'm asking two distinct questions:
Q1: If I have a page that contains a partial that contains a form that invokes an action in MyController, how do I return the results to the original page? A1a: I could (somehow) arrange to have the form emit the controller/method combo that would get me back to the original page, and, after MyController has done its thing, call render('controller/method') to get back to it. A1b: I could use redirect_to env["HTTP_REFERRER"], but unlike render(...), that's a separate transaction, so I'll need to store my temporary Store objects somewhere. See Q2. Q2: Where can I squirrel away unsaved Store records across transactions (e.g. if I use redirect_to as per A1b above)? A2a: Use the session hash. (This feels really wrong) A2b: Stop fighting Rails and save the Store records. Create a StoreLocator model, make it responsible for creating Store records and pruning the ones we don't use. Or something like that. Any better suggestions? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.