We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Rails controller, we still need to integrate manually with something like render json: FooResource.new(foo).
render json: FooResource.new(foo)
For example:
class FoosController < ApplicationController def show foo = Foo.find(params[:id]) render_serialized_json foo end end
class FoosController < ApplicationController def show foo = Foo.find(params[:id]) render json: serialize(foo) end end
In a book, Layered Design for Ruby on Rails Applications, the author (@palkan) uses a custom integration with Rails, and I see it convenient.
The text was updated successfully, but these errors were encountered:
okuramasafumi
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
In Rails controller, we still need to integrate manually with something like
render json: FooResource.new(foo)
.Describe the solution you'd like
For example:
Describe alternatives you've considered
Additional context
In a book, Layered Design for Ruby on Rails Applications, the author (@palkan) uses a custom integration with Rails, and I see it convenient.
The text was updated successfully, but these errors were encountered: