Kevin K
Jul 20, 2021

--

great article!

just fyi, pretty sure this is supposed to be chat_serializer.rb not user_serializer.rb

# CHAT_APP/app/serializers/user_serializer.rb

class ChatSerializer < ActiveModel::Serializer

attributes :id, :title, :messages

def messages

object.messages

end

end

--

--

Kevin K
Kevin K

Written by Kevin K

I write about my web dev and UX design exploits. I work full time at www.fj-tech.io

No responses yet