Libraries for Rails Strong Parameters


#1

Hi everyone,

Just out of curious, is there any library that works nicely with Rails’s Strong Parameters?

I’m using Ember-DATA and AMS. AMS seems only for response.
I have come up with question that when I try to save an object,
it posts the data formatted in JSON API 1.0, and that’s nice, but how do you use posted data nicely in server side, especially Rails?
Do I have to struggle with params[:data][:attributes]... ?


#2

Deserialization is being added to AMS (https://github.com/rails-api/active_model_serializers/pull/950).


#3

@beauby Oh, That’s very good news to me! Thank you! :smiley:


#4

You could also check out jsonapi-resources, which supports strong parameters and deserialization.


#5

@dgeb Thank you! I’ll check it.