Skip to content

Instantly share code, notes, and snippets.

View mauricio-prl's full-sized avatar
🎯
Focusing

Mauricio Lima mauricio-prl

🎯
Focusing
View GitHub Profile
@mauricio-prl
mauricio-prl / Ecto pretty errors, like activerecord
Last active January 15, 2022 03:46
How to implement an `errors.full_messages` phoenix helper, like we have in ROR
After googling a little bit, I've found this:
https://wearebrain.com/blog/software-development/prettify-ecto-erros/
```
defmodule Discuss.EctoHelper do
@moduledoc """
Provides helper functions
"""