Last week I finally got a chance to use the new nested routes in a small rails app, managing invoices for one of our clients. Each invoice belonged to a school and both schools and invoices had an address. It seemed (and was!) the perfect oppurtunity for nesting some forms. I whipped up a sample for the schools and wow! It worked. Automagically.
Perfect. So onto the invoices. Now, logically, the invoices belong to a school, so using another bit of Rails magic I had nested the routes. This was great, as it gave me access to the school and kept everything neat and clean. But… the nested forms within the nested routes (lots of nesting going on around here, I know, but bear with me) exploded. They just refused to work.
...