UI Deploy

Curated, Short, Web UI Dev we Love.

A JSON API Errors Serializer in Rails

The default serialization of error states in Rails might not be what you want for your app. In that case, it’d be worth knowing how to write a custom serialization format for your needs. In my case, I am trying to match the JSON API format for errors.

view source

Advertisement