I really wish Rails front-end templates and partials allowed for more organized passing of data. Here's an example of how things can blow up and a way you can fix it.
Source code link (must be a Patreon member to access):
https://github.com/wakproductions-pat...
/ winstonkotzan
Tip me in BTC! Bitcoin Address: 13FKUusPH1UPvgSkoQRRy6hEg4hyMqKzLS
0:00 Variables within Rails templates are fragile
1:19 Open/Closed SOLID principle in templates via hashes
2:34 Dead code in Stimulus controllers