A much simpler solution to this problem
form_for @model do |form| form.text_field name: name, ..., value: form.object.send(name).strftime("%d-%m-%Y") end