Add strict locals to all partials. This is Rails 7.1 feature that means you can only pass defined locals to a partial and set defaults for locals, like a function. It reduces errors because of typos significantly, as you can see, it even helped me catch some errors.
Add strict locals to all partials. This is Rails 7.1 feature that means you can only pass defined locals to a partial and set defaults for locals, like a function. It reduces errors because of typos significantly, as you can see, it even helped me catch some errors.