You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A common convention for form field inputs is to name each field as a sort of property to the object class we're modifying, for example <input name="patient[first_name]"> for the First Name input of my Patient form. This is the default for Rails forms, and I've seen it elsewhere too.
I see that you can pass a prefix on the Forms class to prefix our field names — I could generate patient-first_name in this case — but I can't quite pull off that wrapping I'd like. Is this currently possible? Would you take a PR that makes it so if not?
The text was updated successfully, but these errors were encountered:
A common convention for form field inputs is to name each field as a sort of property to the object class we're modifying, for example
<input name="patient[first_name]">
for the First Name input of my Patient form. This is the default for Rails forms, and I've seen it elsewhere too.I see that you can pass a
prefix
on the Forms class to prefix our field names — I could generatepatient-first_name
in this case — but I can't quite pull off that wrapping I'd like. Is this currently possible? Would you take a PR that makes it so if not?The text was updated successfully, but these errors were encountered: