Errors helper and field error proc

This commit is contained in:
2025-10-22 03:03:23 +03:00
parent ae1df5f608
commit ff8d520273
3 changed files with 41 additions and 0 deletions
+5
View File
@@ -43,5 +43,10 @@ module SubtleStorm
g.system_tests nil
g.template_engine :slim
end
# Field error proc
config.action_view.field_error_proc = proc do |html_tag, instance|
field_error_helper(html_tag, instance)
end
end
end