Closed regalbob closed 6 years ago
This solved it (in controller):
@document.expiration_date = DateTime.strptime(params[:document][:expiration_date], '%m/%d/%Y').to_date
Hi,
I would recommend that you use simple_form; it simplifies forms quite a lot :)
Great datepicker! But it doesn't update the database date field. We're at Rails 4.1.15, Ruby 2.1.9
StackOverflow says it's due to the format- but I couldn't get that to work (https://stackoverflow.com/questions/15405703/changes-in-the-form-are-not-saved-to-database)
form: