Correct deprecated AR usage in ActionController::MimeResponds documentation

This commit is contained in:
Will 2010-12-19 14:14:02 +11:00
parent ad14926b44
commit 1a6c4c86ea

@ -63,13 +63,13 @@ def clear_respond_to
# might look something like this:
#
# def index
# @people = Person.find(:all)
# @people = Person.all
# end
#
# Here's the same action, with web-service support baked in:
#
# def index
# @people = Person.find(:all)
# @people = Person.all
#
# respond_to do |format|
# format.html
@ -155,7 +155,7 @@ def clear_respond_to
# Respond to also allows you to specify a common block for different formats by using any:
#
# def index
# @people = Person.find(:all)
# @people = Person.all
#
# respond_to do |format|
# format.html
@ -178,7 +178,7 @@ def clear_respond_to
# respond_to :html, :xml, :json
#
# def index
# @people = Person.find(:all)
# @people = Person.all
# respond_with(@person)
# end
# end