From Rails
<%= link_to(
'likeπ',
'#',
id: 'like',
data: {
userId: current_user.id
})
%>
To JS
$('#like').click(function(event){
console.log(event.target.dataset.userId)
})
For further actions, you may consider blocking this person and/or reporting abuse
Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.
Negrito π -
AliMehraji -
Dorian Sabitov -
olasperu -
Top comments (2)
Nice post! But You mistyped "dataset" π
Thank you! I fixed it π