I recently upgraded a good sized Rails 1.2.6 app to Rails 2.3.4. Peter Marklund's excellent upgrade notes were an incredible help and for the most part the upgrade was fairly straight forward. During the upgrade, I changed many calls of:
render_partial_collection
to:
render :partial=>'', :collection=>''The one piece of documentation I had a hard time finding was what became of the separator parameter on the now deprecated render_partial_collection. After quite a bit of digging, I found that it's now called :spacer_template. So,
<%= render_partial_collection "category", @post.get_category_hierarchy, 'bar_separater' %>
Became:
<%= render :partial=>"category",
:collection=>@post.get_category_hierarchy,
:spacer_template=>'bar_separater' %>
Hope this helps anyone else in the same boat!
Thanks a lot for sharing your upgrade notes and link.
Posted by: kapil | December 07, 2009 at 06:19 AM