Module: Mailfox::ApplicationHelper
- Defined in:
- app/helpers/mailfox/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#error_messages_for(object, options = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'app/helpers/mailfox/application_helper.rb', line 3 def (object, = {}) = [:length] ? [object.errors.[[:length] - 1]] : object.errors. content_tag :ul, class: 'error-messages' do .each do |msg| concat content_tag(:li, msg) end end end |