I have recently been having to include a dummy field in forms generated by form_with. The first hidden field value is overwritten by some token-like string. Here is an example of the code:
I’m running the rails master branch (6.1.0alpha) and I attempted to fix it for a while before deciding the easiest course of action was to just include a dummy field to serve as a sacrificial victim to whatever programming god is overriding the values of the first field in my form_with. I’m sure I am doing something silly to cause this, but for about 5 hours of debugging, I couldn’t figure out what. This was my most WTF Rails story of late, maybe this isn’t the right venue for it, but it felt in the spirit of things when I thought of it.