Skip to content

Conversation

@frenkel
Copy link
Contributor

@frenkel frenkel commented Aug 25, 2025

Before this PR you would get this error:
Information for cause: ArgumentError (Invalid refresh option 'morph')
for this code:
<%= turbo_refresh_method_tag "morph" %>

This error message was a real head scratcher until I read the code and realized I had used the wrong type. I think strings are fine to accept as well, this PR fixes it.

@frenkel frenkel force-pushed the feat/meta-tag-string-arguments branch from 407a2e3 to 9660dc4 Compare August 25, 2025 11:12
@frenkel frenkel changed the title feat: accept meta tag string arguments as well Cccept meta tag string arguments as well Aug 25, 2025
@frenkel frenkel changed the title Cccept meta tag string arguments as well Acccept meta tag string arguments as well Aug 25, 2025
@seanpdoyle
Copy link
Contributor

@frenkel could you add some tests to cover these values?

@seanpdoyle seanpdoyle force-pushed the feat/meta-tag-string-arguments branch from 9660dc4 to 84dd561 Compare November 21, 2025 22:29
@seanpdoyle seanpdoyle force-pushed the feat/meta-tag-string-arguments branch from 84dd561 to 49f3666 Compare November 22, 2025 00:34
@seanpdoyle seanpdoyle merged commit 27c957f 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