complex_nested_form Rails Nested Attributes with Scoped Uniqueness Validation of Association Sample application to show a complex form with nested attributes and a scoped validation of associated records. Read more about it on my blog.