aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorMarcel Molina <marcel@vernix.org>2006-08-14 14:33:40 +0000
committerMarcel Molina <marcel@vernix.org>2006-08-14 14:33:40 +0000
commit2ac4839050f28d78f49d073f0d24dc29dd3e0244 (patch)
treee16171125527c896732344b0b689703e0e48cb60 /actionpack/lib/action_controller
parentd7f780e0664ebb939ce76d987cd30c6eec496dc7 (diff)
downloadrails-2ac4839050f28d78f49d073f0d24dc29dd3e0244.tar.gz
rails-2ac4839050f28d78f49d073f0d24dc29dd3e0244.tar.bz2
rails-2ac4839050f28d78f49d073f0d24dc29dd3e0244.zip
Update respond_to docs to follow established naming convention
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4759 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/mime_responds.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/actionpack/lib/action_controller/mime_responds.rb b/actionpack/lib/action_controller/mime_responds.rb
index 4ff00bf8a5..fd9af05905 100644
--- a/actionpack/lib/action_controller/mime_responds.rb
+++ b/actionpack/lib/action_controller/mime_responds.rb
@@ -17,9 +17,9 @@ module ActionController #:nodoc:
# def list
# @people = Person.find(:all)
#
- # respond_to do |wants|
- # wants.html
- # wants.xml { render :xml => @people.to_xml }
+ # respond_to do |format|
+ # format.html
+ # format.xml { render :xml => @people.to_xml }
# end
# end
#
@@ -44,10 +44,10 @@ module ActionController #:nodoc:
# @company = Company.find_or_create_by_name(company[:name])
# @person = @company.people.create(params[:person])
#
- # respond_to do |wants|
- # wants.html { redirect_to(person_list_url) }
- # wants.js
- # wants.xml { render :xml => @person.to_xml(:include => @company) }
+ # respond_to do |format|
+ # format.html { redirect_to(person_list_url) }
+ # format.js
+ # format.xml { render :xml => @person.to_xml(:include => @company) }
# end
# end
#