How to generate a model serializer using active_model_serializer gem

If you are using the active_model_serializer gem, you can generate Model serializers using the following command.

rails generate serializer <model_name>
# e.g.
rails generate serializer user
Ryan Sukale

Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.

You may also like...