Blogmark
The most underrated Rails helper: dom_id
via jbranchaud@gmail.com
https://boringrails.com/articles/rails-dom-id-the-most-underrated-helper/
Ruby on Rails
Boring Rails
The dom_id
helper allows you to create reproducible, but reasonably unique identifiers for DOM elements which is useful for things like anchor tags, turbo frames, and rendering from turbo streams.