mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Correct deprecated AR usage in ActionController::MimeResponds documentation
This commit is contained in:
parent
ad14926b44
commit
1a6c4c86ea
1 changed files with 4 additions and 4 deletions
|
@ -63,13 +63,13 @@ module ActionController #:nodoc:
|
|||
# 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 @@ module ActionController #:nodoc:
|
|||
# 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 @@ module ActionController #:nodoc:
|
|||
# respond_to :html, :xml, :json
|
||||
#
|
||||
# def index
|
||||
# @people = Person.find(:all)
|
||||
# @people = Person.all
|
||||
# respond_with(@person)
|
||||
# end
|
||||
# end
|
||||
|
|
Loading…
Reference in a new issue