Skip to content

Instantly share code, notes, and snippets.

@kslrinn
kslrinn / _comment.html.slim
Created September 13, 2019 08:59 — forked from dbridges/_comment.html.slim
Stimulus.js and Rails remote forms with error handling
- # app/views/comments/_comment.html.slim
li data-controller="comment" data-action="click->comment#hello"
= "#{comment.message} by #{comment.user.email}"