I'm trying to implement a custom Fake Input (found in this article) with a Simple Form For. This is my code:
<%= simple_form_for :results, { url: admin_add_sites_path } do |f| %>
<%= f.input :no_merchandisers, as: :fake %>
<%= f.input :site_codes_to_add, as: :fake %>
<%= f.submit "Submit" %>
<% end %>
When I first implemented the input I received an error:
No input found for fake
The answer in this Stack overflow question tells me to restart my server. This temporarily fixes the above issue for me.
But, whenever I edit and save a file (it was happening when editing a controller file), the error pops up again and I have to restart my server to be able to continue. Has anyone else experienced this before? Is there a fix for this?