NetManiac

Witold Rugowski on web20 wave with Ruby on Rails

Associations and to_json on collections of objects

Posted on May 22, 2009 - Filed Under JavaScript, Other, RubyOnRails, Tech | Leave a Comment

If you’re new here, you may want to subscribe to my RSS feed. You can also get updates by email Thanks for visiting!ActiveRecord’s Serialization module does provide to_json method. It allows include associations when dumping to JSON, but it works only for single objects. If You want to run it against collection, returned by find [...]

Popularity: 18% [?]

Read More..>>