DEV Community

Discussion on: Using Serializers With a Ruby on Rails API

Collapse
 
cescquintero profile image
Francisco Quintero 🇨🇴

Hi Jack, active_model_serializers is an awesome gem and will work great in many projects but it is currently outdated.

You should take a look at Blueprinter gem which is a good replacement for AMS. 👍🏽

Collapse
 
swiknaba profile image
Lud

I love blueprinter! Works well, nice features, beautiful DSL & code, good support and development. Have been using it across multiple projects since one year now.

Collapse
 
cescquintero profile image
Francisco Quintero 🇨🇴

Yep. I was really worried in the first project I used it but as the time past, it proved itself and now it's my default gem for serialization :)

Thread Thread
 
swiknaba profile image
Lud

Read the code. It is really well written and they have a lot of tests. Understanding at least some parts of the code helps you reduce this anxiety :-)

Collapse
 
rhymes profile image
rhymes • Edited

Didn't know about it!

We use both Jbuilder and fast_jsonapi here at DEV.

Collapse
 
cescquintero profile image
Francisco Quintero 🇨🇴

I knew about fast_jsonapi but when I was about to use it, Blueprinter looked better and preferred it but yeah, fast_jsonapi looks now like a very good choice as well.

Sadly, AMS is going away but it was a great tool in its prime time.

Thread Thread
 
rhymes profile image
rhymes • Edited

I'm glad both Blueprinter and fast_jsonapi can use Oj, best gem ever :D

Collapse
 
123jackcole profile image
Jack Cole

Good to know thanks! I'll check it out!