If you could use a tiny bit of JS in the form... 1. The new action: Render a form with the zip code and an empty list of stores.
2. The create action: Form submits the zip code, but no store data. Take the zip code, find the stores, and render the new action again, this time with the list of stores. Use a small set of hidden variables to send the selected store data back. Use a small bit of JS to set the hidden variables to the values of the store selected. 3. The creation action: Form submits the zip code and the hidden variables, which now contain the values of the store needed to create the store. If the list was small, I suppose you could have a bunch of hidden variables, one 'set' for each store. Workable, but a little ugly and perhaps has limits. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

