79341121

Date: 2025-01-09 01:09:53
Score: 1
Natty:
Report link

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
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Simon