提交 1a6c4c86 编写于 作者: W Will

Correct deprecated AR usage in ActionController::MimeResponds documentation

上级 ad14926b
...@@ -63,13 +63,13 @@ def clear_respond_to ...@@ -63,13 +63,13 @@ def clear_respond_to
# might look something like this: # might look something like this:
# #
# def index # def index
# @people = Person.find(:all) # @people = Person.all
# end # end
# #
# Here's the same action, with web-service support baked in: # Here's the same action, with web-service support baked in:
# #
# def index # def index
# @people = Person.find(:all) # @people = Person.all
# #
# respond_to do |format| # respond_to do |format|
# format.html # format.html
...@@ -155,7 +155,7 @@ def clear_respond_to ...@@ -155,7 +155,7 @@ def clear_respond_to
# Respond to also allows you to specify a common block for different formats by using any: # Respond to also allows you to specify a common block for different formats by using any:
# #
# def index # def index
# @people = Person.find(:all) # @people = Person.all
# #
# respond_to do |format| # respond_to do |format|
# format.html # format.html
...@@ -178,7 +178,7 @@ def clear_respond_to ...@@ -178,7 +178,7 @@ def clear_respond_to
# respond_to :html, :xml, :json # respond_to :html, :xml, :json
# #
# def index # def index
# @people = Person.find(:all) # @people = Person.all
# respond_with(@person) # respond_with(@person)
# end # end
# end # end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册