I’m using JBuilder outside of views (I’m using them in PORO serializers rather than in a model) in my project, but I haven’t had much success with partials. To build composable serializers, I’m using JBuilder’s #to_builder
and target
methods whenenver I have to build a component of a larger response in a serializer.