https://github.com/rails/rails/pull/55826

Add conflicting record ID to `validates_uniqueness_of` error details by bvicenzo · Pull Request #55826 · rails/rails
Motivation and Background Currently, when a validates_uniqueness_of validation fails, the errors.details hash only provides { error: :taken, ... }. This indicates that a conflict exists but offers ...






