I have an array attribute in the form and wanting to iterate over this and append each index value to dom id.
I've looked up in the API for use of dom_id but I can't locate one that deals with array attribute.
If dom_id is not meant for working with array index, is there any other way to get array indexes in the view?
<div id="ingredient<%= dom_id(?) %>">