How to Submit Complex Form Data in Ruby on Rails Discussion
Yet another good tutorial you made. I must say I always use option 1.
I don't like moving logic to JS if not needed because more dependencies and more code
I don't know how to express it but I'm not comfortable with the second approach. Way more code, clutter and moving parts.
Also, quick and possibly noob question: wouldn't the user be able to change the hidden_field value (by using the inspector) and put whatever value he wants for each of them, without respecting the range?