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
I suppose there is an example that is wrong about hanami framework.
the file is located at source/guides/serialization/rendering.html.md.
The example says:
moduleAPI::Controllers::PostsincludeAPI::ActionincludeJSONAPI::Hanami::Actionexpose:url_helpersclassCreate# ...@url_helpers=routes# Will be available inside serializable resources.self.data=postsself.include=[:author,comments: [:author]]self.fields={users: [:name,:email],posts: [:title,:content]}endend
It should be like this:
moduleAPI::Controllers::PostsclassCreateincludeAPI::ActionincludeJSONAPI::Hanami::Actionexpose:url_helpersdefcall(params)#...@url_helpers=routes# Will be available inside serializable resources.self.data=postsself.include=[:author,comments: [:author]]self.fields={users: [:name,:email],posts: [:title,:content]}endendend
The text was updated successfully, but these errors were encountered:
I suppose there is an example that is wrong about hanami framework.
the file is located at source/guides/serialization/rendering.html.md.
The example says:
It should be like this:
The text was updated successfully, but these errors were encountered: