I tried to migrate from jbuilder to props_template on a Rails app with config.api_only set to true, and I was surprised that all my specs were failing when my requests returned 204 No Content.
It turns out, api_only disables template rendering, as well as helpers and implicit rendering.
Similar gems such as jbuilder or jb re-enable those in their railtie file. I think props_template could be helpful by doing the same.
I tried to migrate from jbuilder to props_template on a Rails app with
config.api_only
set totrue
, and I was surprised that all my specs were failing when my requests returned204 No Content
.It turns out,
api_only
disables template rendering, as well as helpers and implicit rendering.Similar gems such as jbuilder or jb re-enable those in their railtie file. I think props_template could be helpful by doing the same.