5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 04:16:21 +00:00

feat: validar formularios htmx

This commit is contained in:
f 2024-06-19 18:20:05 -03:00
parent e2af1f215a
commit 798bb992dc
No known key found for this signature in database

View file

@ -27,7 +27,12 @@
multipart: true,
class: 'form post ',
'hx-swap': params.require(:swap),
'hx-target': "##{params.require(:target)}"
'hx-target': "##{params.require(:target)}",
'hx-validate': true,
data: {
controller: 'form-validation',
action: 'form-validation#submit'
}
}
if post.new?