Sha256: debb77a553f7c3357031bd2b8f8586c57ee2c567b1f266168f1d4ca4c3826c3f
Contents?: true
Size: 500 Bytes
Versions: 1
Compression:
Stored size: 500 Bytes
Contents
module ErrorsHelper def error_messages_for(form, opts={}) unless form.errors.blank? html = "<div class='form-error-messages'>\n \t\t<h4>#{master.errors.count} #{t('drexed_errors.errors_pending', count: master.errors.count)}</h4>\n \t\t<ul class='list-unstyled'>\n" form.errors.full_messages.each do |error| html << "\t\t\t<li>#{error}</li>\n" end html << "\t\t</ul>\n \t</div>\n" html.html_safe end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
drexed-errors-0.0.2 | app/helpers/errors_helper.rb |