RailsCasts Pro episodes are now free!

Learn more or hide this

Tom Hoen's Profile

GitHub User: hoenth

Comments by Tom Hoen

Avatar

In Ryan's example, storing the data in the DOM and also retrieving it using AJAX, it would incur multiple database calls. But Ryan was simply demonstrating how you could use the serializers to store data in the DOM. In the real world, you likely wouldn't need both on the same page.