I still think that div with class for every input is not good... Look at these: https://github.com/mmaciejewski/my_gists_rework/blob/master/app/views/gists/_form.html.erb  from line 29 you have simple form.