You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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