Skip to content

Conversation

@afrase
Copy link
Contributor

@afrase afrase commented Mar 6, 2024

Hello,

This PR updates the turbo_frame_tag and turbo_stream_action_tag helpers to support passing a class argument in the same way ActionView::RecordIdentifier#dom_id does.

I updated the methods to also check for a Class since dom_id essentially does that.

I didn't see any contributor docs so I'm not sure if I missed something.
Thanks.

Updated turbo_stream_action_tag and turbo_frame_tag helpers to accept a Model Class as their target.
@seanpdoyle seanpdoyle force-pushed the better-dom_id-support branch from 7376534 to 6703a1d Compare November 22, 2025 00:35
@seanpdoyle seanpdoyle merged commit d85f2f0 into hotwired:main Nov 22, 2025
5 checks passed
@seanpdoyle
Copy link
Contributor

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants