text_field :url,
label: "URL",
hint: "The URL of the top-level link."
Should just become:
text_field :url
And the i18n system should be used to look up values for hint and label using keys that correspond to the form, field, and option names, e.g. my_form.url.label
e.g. this code
Should just become:
And the i18n system should be used to look up values for
hint
andlabel
using keys that correspond to the form, field, and option names, e.g.my_form.url.label