I got caught out by assuming that turbo_frame_tag
constructed an id
using the dom_id
.
It does use dom_id
but it maps
the arguments, trying dom_id
and joins them with a _
dom_id(post, :comments)
#=> comments_post_1
turbo_frame_tag(post, :comments)
#=> id -> post_1_comments
I also created a RSpec helper