Permalink
Browse files

Remove non-obligatory params in AC respond_to examples

  • Loading branch information...
1 parent a17874e commit e52734755477f1ac690b972f1567e9285abf03a7 @avakhov avakhov committed Apr 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/metal/mime_responds.rb
@@ -74,7 +74,7 @@ def clear_respond_to
#
# respond_to do |format|
# format.html
- # format.xml { render :xml => @people.to_xml }
+ # format.xml { render :xml => @people }
# end
# end
#
@@ -389,7 +389,7 @@ def retrieve_collector_from_mimes(mimes=nil, &block) #:nodoc:
#
# respond_to do |format|
# format.html
- # format.xml { render :xml => @people.to_xml }
+ # format.xml { render :xml => @people }
# end
#
# In this usage, the argument passed to the block (+format+ above) is an

0 comments on commit e527347

Please sign in to comment.