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

Correct deprecated AR usage in ActionController::MimeResponds documentation

上级 ad14926b
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册