Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Specialists::UsersHelper
- def check_for_errors(field_error, &block)
- if field_error.blank?
- block.call
- else
- haml_tag :div, :class => 'field_with_errors' do
- block.call
- end
- end
- end
- def simple_form_errors_message(errors)
- if !errors.empty?
- haml_tag :div, :class => 'errorExplanation' do
- haml_tag :p do
- haml_concat "Please correct the highlighted fields."
- end
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment