Fork me on GitHub

Use render :collection Rails when possible

29 Jul 2010

Helmut Juskewycz

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