You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, using `render json: serialize(target)` renders JSON for given target object. You can pass `with: SomeSerializer` option to render with `SomeSerializer` in this case. If you skip `with` option Alba tries to find the correct serialize automatically.
53
+
54
+
There is a shorter version: `render_serialized_json(target)`. It also accepts `with` option.
55
+
56
+
It's recommended to use `with` option now since it cannot automatically find correct serializers sometimes.
0 commit comments