Home > Error Message > Rails Error Messages

Rails Error Messages

Contents

model_name = self.object.class.name.downcase id_of_element = "error_#{model_name}_#{field_name}" target_elem_id = "#{model_name}_#{field_name}" class_name = 'signup-error alert alert-danger' error_declaration_class = 'has-signup-error' "

"\ "#{self.object.errors[field_name].join(', ')}"\ ""\ "