Sha256: 622845a9a30b939053f338b4b02451e4aa7294c0c239661b603d90a8309009db
Contents?: true
Size: 294 Bytes
Versions: 75
Compression:
Stored size: 294 Bytes
Contents
module ApplicationHelper def inline_error_for(field, form_obj) html = [] if form_obj.errors[field].any? html << form_obj.errors[field].map do |msg| tag.div(msg, class: "text-red-400 text-xs m-0 p-0 text-right mb-2") end end html.join.html_safe end end
Version data entries
75 entries across 75 versions & 1 rubygems