Ruby on Rails Saturday, January 4, 2020

<%= content_tag :div, id: "message_holder", data: {conversation_with_id: @conversation_with.id} do %>

translates to this html from page source:
<div id="message_holder" data-conversation-with-id="3">

The underscores get translated to hyphens Should I just rename the variable to conversation-with-id ?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8da006ce-97eb-49d2-aa3f-b2226c8f0ef5%40googlegroups.com.

No comments:

Post a Comment