i working return json response format following guide http://jsonapi.org using ams. default ams adapter not support this. try enable activemodel::serializer::adapter::jsonapi suggested here: https://github.com/rails-api/active_model_serializers when boot rails s, got following error :
config/initializers/ams.rb:2:in <top (required)>': undefined methodconfig' activemodel::serializer:class (nomethoderror)
your highly appreciated.
are sure you're using ams 0.10+? if using version prior 0.10, error.
Comments
Post a Comment