Ruby on Rails
Friday, May 2, 2014
I have the following associations in my ActiveRecord models
1) Groups
2) Users
Each Group has and belongs to many users
There is an api endpoint - <Site>/api/v1/groups which returns a list of the groups. In the controller when I am sending a list of 20 groups, the Users property is not populated beforehand in the json structure. Anyway to include the Users property in the json response.
Thanks,
Ganesh
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALFmRoEMhEBy3mD%3DsF%3Dunw81seDcSHR_ZzBT2mFuzbLRu3Ca0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment