Sha256: b7c7b808160a6b95ba38f51e187e976fd3c27b1cc037ddf4506913bcf233d26f

Contents?: true

Size: 296 Bytes

Versions: 78

Compression:

Stored size: 296 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

78 entries across 77 versions & 1 rubygems

Version Path
rails_app_generator-0.3.6 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.3.5 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.3.4 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.3.3 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.3.2 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.3.1 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.3.0 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.2.43 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.2.42 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.2.41 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.2.40 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.2.39 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.2.38 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.2.37 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.2.36 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.2.35 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.2.34 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.2.33 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.2.32 after_templates/rag/tailwind_hotwire_form/application_helper.rb
rails_app_generator-0.2.31 after_templates/rag/tailwind_hotwire_form/application_helper.rb