Module: DeviseHelper

Defined in:
app/helpers/devise_helper.rb

Instance Method Summary collapse

Instance Method Details

#devise_error_messages!Object



2
3
4
5
6
7
8
# File 'app/helpers/devise_helper.rb', line 2

def devise_error_messages!
  messages = resource.errors.full_messages.join('<br />').html_safe
  if messages.present?
  	messages = (:div, 'x', :class => 'close', 'data-dismiss' => 'alert') + messages
  	(:div, messages, :class => "alert alert-error flash", 'data-alert' => 'alert')
	end
end