Simple one time solution is to use :value
option within text_field
call instead of adding something to ActiveRecord::Base
or CoreExtensions
.
For example:
<%= f.text_field :some_date, value: @model_instance.some_date.strftime("%d-%m-%Y") %>
Simple one time solution is to use :value
option within text_field
call instead of adding something to ActiveRecord::Base
or CoreExtensions
.
For example:
<%= f.text_field :some_date, value: @model_instance.some_date.strftime("%d-%m-%Y") %>