this sounds like a plan but could you propose some links to read up on? Would be nice if some API doc was to mention on the syntax of having arrays in the form for select boxes. In this case, some in depth documentation illustrating how collection_select can be used for arrays in the form. I suppose the answer to this question would benefit many who are thinking of developing serious apps with Rails.
thanks On Oct 16, 7:49 am, jemminger <[email protected]> wrote: > Ultimately, you're going to end up with arrays of category ids and > subcategory ids. You'll represent these in your form with fields > named something like "category_id[]" and "subcategory_id[]". So your > ajax call will just need to return the html to insert a new properly- > named field, or perhaps just json representing the available options > and you create the new properly named field via DOM methods. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

