I have an autocomplete setting in my application, and during testing, I noticed that it unexpectedly didn’t work just a few minutes before. The application returned a pg error stating that employee_id was null .
I realized that the browsers' own autocomplete told me the value, and therefore js did not insert the id value into the hidden field.
When I check the Mozilla documentation, I see that they recommend disabling auto-completion at the form level. I am using simple_form but cannot figure out how to do this.
<form name="form1" id="form1" method="post" autocomplete="off"
ruby-on-rails simple-form
markhorrocks
source share