Fork me on GitHub

Use render :collection Rails 3 when possible

29 Jul 2010

Helmut Juskewycz (hjuskewycz@hemju.com)

In Rails 3, render :collection is much faster than looping over a collection and calling render :partial manually. Some initial benchmarking showed up to 3 times faster rendering when render :collection was used.

Thanks to Yehuda for this protip (sended via Twitter)

Tags