rails date field format on error
- by ash34
Hi,
I have an input field that captures a date in my form
<%= f.text_field :from_date, :style => 'width:80px;' %>
The user enters the date in the following format MM/DD/YYYY. However, when there is a validation error in the model and the form is displayed back to the user with the entered values, the date format is converted to…