Update and move turbo_stream actions to separate file

Use CSS `visibility` instead of `display` for #show/#hide.
Access data attributes through `dataset` property.
This commit is contained in:
2026-10-17 03:14:35 +02:00
parent 4d86652247
commit f1578fad75
4 changed files with 106 additions and 110 deletions
@@ -1,4 +1,4 @@
<%= turbo_stream.validate dom_target(*@target, :form) do %>
<%= turbo_stream.validate_form dom_target(*@target, :form) do %>
<% @record.errors.attribute_names.map do |attr| %>
<%= tag.span data: {name: field_name(dom_class(@record), attr)} do %>
<%- @record.errors.full_messages_for(attr).map { |m| m + '.' }.join(' ') %>