Module: DeviseHelper
- Defined in:
- app/helpers/devise_helper.rb
Instance Method Summary collapse
Instance Method Details
#devise_error_messages!(html_options = {}) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'app/helpers/devise_helper.rb', line 2 def ( = {}) return if resource.errors..empty? (content_tag :div, :class => "box error_description #{html_options[:class] || 'w60'}" do (content_tag :h2, t("following_errors_ocurred", default: 'The following errors occurred')) \ + \ (content_tag :ul do raw resource.errors..map { |msg| content_tag(:li, msg) }.join end) end) end |