Open
Description
Hi, I am trying to switch from AMS to jsonapi-rails gem, but after creating serializers, I still get an uninitialized constant GroupsController::SerializableGroup
error message from the gem
def index
groups = Group.all
render jsonapi: groups, class: {Group: SerializableGroup }
end
serializers/group_serializer.rb
class SerializableGroup < JSONAPI::Serializable::Resource
type 'group'
has_many :users
attributes :name
end
I'm not sure what I am doing wrong really.
Metadata
Metadata
Assignees
Labels
No labels