class MavisFormBuilder
Constants
- RAILS_DEFAULT_MESSAGES
Public Instance Methods
Source
# File app/lib/mavis_form_builder.rb, line 23 def govuk_error_summary(*, **) raise "Use f.mavis_error_summary instead of f.govuk_error_summary. " \ "Default places the summary in content_for(:before_content). " \ "Pass inline: true to render it inline." end
Also aliased as: _govuk_error_summary
Source
# File app/lib/mavis_form_builder.rb, line 9 def mavis_error_summary(inline: false, **) check_for_default_error_messages if Rails.env.local? summary = _govuk_error_summary(**) @template.content_for(:error_summary_rendered, "true") if inline summary else @template.content_for(:before_content) { summary } nil end end