A project worth looking at to make filling in these forms easier is https://github.com/thoughtbot/formulaic 

Haven't tried yet, but the DSL it has