Why are you building the form manually instead of using the [rails form helpers](http://guides.rubyonrails.org/form_helpers.html)?

They really help life with the convention over configuration bits of rails. If they're not customizable enough for you, look into the [https://github.com/plataformatec/simple_form](simple_form) gem.