Open chrismear opened 10 years ago
This occurs because we are assuming the user has entered a financial year-end date in the format dd/mm/yyyy, and the code does not fail gracefully if they have entered it in a different format.
Ideally, we should be using a date select input that forces the correct format, or at the very least be validating the format before it gets saved into the database.
A TypeError occurred in registration_forms#show: can't convert nil into Integer app/models/registration_form.rb:65:in `%'