Thursday, December 7, 2006

Ruby on Rails Deprecations Part 3 of 3: ActionView

This final installment in posts about deprecated features of Ruby on Rails covers Views. See Part 1 for Controllers, and Part 2 for ActiveRecord.

Deprecated View features
  • content_for('name_of_content_block') - use yield :name_of_content_block
  • :human_size - use :number_to_human_size
  • link_image_to - use image_tag within a link_to method
  • :post as a link modifier - use :method => "post" instead
  • render_partial - use render :partial
  • render_partial_collection - use render :partial, :collection

No comments: