-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
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
Getting the serialized hash without render #1101
Comments
What version of AMS are you on? That's more or less right. Take a look at ref (just to link relevant issues/prs here for us and the future):
|
I'm following the master branch currently on I had a look before in the Should a reference of the above be added to the documentation? It would have saved me quite some time :) |
Yes please! B mobile phone
|
Should we close this issue now that the question seems to have been answered? |
Yeap, I will create a PR for hopefully today. Cheers |
Nice, I glad that you find your way through it @PericlesTheo, Would be nice to have it on our new docs as well. |
I know I'm terrible :( I should have done it last week. I'll try tonight |
haha np, tks! 😄 |
Hey humans,
Let's say I have
When I use
render json: @message
in the controller I get{:message=>{:content=>"some peoisadfnsaidfnple like wefaefsushi", :user=>{:email=>"[email protected]"}}}
which is what I'd expect.However, I'd like to be able to get the same serialization without using
render
in the controller.I couldn't find anything in the docs and the only way around I found is
Is there an easier way of achieving the above?
Cheers!
The text was updated successfully, but these errors were encountered: