Action View


Table A-7. Deprecated view features
Rails 1.1.6Rails 1.2
content_for(' name_of_content_block ') yield :name_of_content_block
:human_size :number_to_human_size
link_image_to Use image_tag within a link_to method
:post as a link modifierUse :method => "post" instead
render_partial Use render :partial
render_partial_collection render :partial, :collection
<%= start_form_tag :action=>'list' %> ... <%= end_form_tag %> Use new block form: <% form_tag :action=>'list' do %> ... <% end %>
<%= form_remote_tag :update=>'list', :url=>{:action=>'add'} %> ... <%= end_form_tag %> Use new block form: <% form_remote_tag :update=>'list', :url=>{:action=>'add'} do %> ... <% end %>





Rails Cookbook
Rails Cookbook (Cookbooks (OReilly))
ISBN: 0596527314
EAN: 2147483647
Year: 2007
Pages: 250
Authors: Rob Orsini

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net