diff --git a/lib/bootstrap_form/helpers/bootstrap.rb b/lib/bootstrap_form/helpers/bootstrap.rb index 8c11616ff..fd6a05ca1 100644 --- a/lib/bootstrap_form/helpers/bootstrap.rb +++ b/lib/bootstrap_form/helpers/bootstrap.rb @@ -27,8 +27,12 @@ def alert_message(title, options={}) return unless object.respond_to?(:errors) && object.errors.full_messages.any? tag.div class: css do - concat tag.p title - concat error_summary unless options[:error_summary] == false + if options[:error_summary] == false + title + else + concat tag.p title + concat error_summary + end end end