Please familiarize yourself with how Rails handles nested attributes: http://railscasts.com/episodes/196-nested-model-form-part-1

This should allow you to do these nested forms without all these redundant boilerplate helper methods in layer.rb.