Display form errors using custom validity messages

This commit is contained in:
2026-07-28 00:45:08 +02:00
parent 5d051de666
commit eb2797bd90
13 changed files with 81 additions and 51 deletions

View File

@@ -34,4 +34,8 @@ ActiveSupport.on_load :turbo_streams_tag_builder do
def unselect(target)
action :unselect, target, allow_inferred_rendering: false
end
def validate(target, content = nil, **rendering, &block)
action :validate, target, content, **rendering, &block
end
end