I must have missed the part of the changelog where it states that the errors.add_to_base call will be deprecated. Anyhow, I searched the web and almost every case refers to the new API using

errors[:base] = 'My error message'

orĀ 

errors[:base] << 'My error message'

This might be fine for single language apps, but when you have to provide the interface in many languages and want to keep all your error messages in one language file, you would have to replace ‘My error message’ with a call like

errors[:base] << I18n.t('activerecord.errors.models.model_name.attributes.base.my_code')

Another method which I could not really find in any blog post out there is a simple

errors.add(:base, :my_code)

Far shorter and it gets automatically namespaced. So have fun ;)