Hi guys,
I'm with Rails 4, and I'm sure it worked before, but something happened and before I check when and what, maybe you can help.
The devise_helper.rb is completely ignored, I don't see the desired behavior and cannot even stop there with binding.pry to debug it.
Here's the contents, I'll be very thankful if you have anything to suggest.
module DeviseHelper
# Override the predefined Devise's method and
# move the Devise errors to the flash[:errors]
def devise_error_messages!
return if resource.errors.empty? || current_user_is_guest?
errors = resource.errors.full_messages
errors.each do | error |
flash.now[:errors] = error
end
end
end