Data splats from underscore to hyphenated #940
Unanswered
olleolleolle
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am making a Hash of attributes for my Slim template.
The output becomes:
<div class="test-one" data-olle_target="yes">Add Olle template here</div>I wonder, would it be hard to make the
data-olle_targetits Rails-expected attribute namedata-olle-target?Perhaps this API is something :
https://blog.saeloun.com/2021/05/05/rails-7-transform-hash-into-html-for-erb-interpolation/
Beta Was this translation helpful? Give feedback.
All reactions