Notes posted by apalmblad
RSS feed
0 thanks
Don't forget about as
:as is a good but poorly document argument to rendering a collection:
<%= render :partial => 'some_partial', :collection => an_array, :as => :better_name -%>
Which will give you each element of an_array in the partial in a local variable named better_name not some_partial.