0 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 rails 10 Please enable JavaScript to view the comments powered by Disqus.