Skip to content

Commit

Permalink
Update respond_to docs to follow established naming convention
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4759 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
Marcel Molina committed Aug 14, 2006
1 parent d7f780e commit 2ac4839
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions actionpack/lib/action_controller/mime_responds.rb
Expand Up @@ -17,9 +17,9 @@ module InstanceMethods
# def list # def list
# @people = Person.find(:all) # @people = Person.find(:all)
# #
# respond_to do |wants| # respond_to do |format|
# wants.html # format.html
# wants.xml { render :xml => @people.to_xml } # format.xml { render :xml => @people.to_xml }
# end # end
# end # end
# #
Expand All @@ -44,10 +44,10 @@ module InstanceMethods
# @company = Company.find_or_create_by_name(company[:name]) # @company = Company.find_or_create_by_name(company[:name])
# @person = @company.people.create(params[:person]) # @person = @company.people.create(params[:person])
# #
# respond_to do |wants| # respond_to do |format|
# wants.html { redirect_to(person_list_url) } # format.html { redirect_to(person_list_url) }
# wants.js # format.js
# wants.xml { render :xml => @person.to_xml(:include => @company) } # format.xml { render :xml => @person.to_xml(:include => @company) }
# end # end
# end # end
# #
Expand Down

0 comments on commit 2ac4839

Please sign in to comment.