New in rails
One of the bigger changes coming in the next rails will be an overhauled render method.
Here are some examples. New syntax in bold.
render_with_layout “weblog/show”, “200 OK”, “layouts/dialog”
render :action => “show”, :layout => “dialog”
render_without_layout “weblog/show”
*render :action => “show”, :layout => false *
render_action “error”, “404 Not Found”
render :action => “error”, :status => “404 Not Found”
render_template “xml.div(‘stuff’)”, “200 OK”, :rxml
*render :inline => “xml.div(‘stuff’)”, :type => :rxml *
render_text “hello world!”
render :text => “hello world!”
render_partial_collection “person”, @people, nil, :a => 1
render :partial => “person”, :collection => @people, :locals => { :a => 1 }