Changeset 4759
- Timestamp:
- 08/14/06 14:33:40 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_controller/mime_responds.rb
r4665 r4759 18 18 # @people = Person.find(:all) 19 19 # 20 # respond_to do | wants|21 # wants.html22 # wants.xml { render :xml => @people.to_xml }20 # respond_to do |format| 21 # format.html 22 # format.xml { render :xml => @people.to_xml } 23 23 # end 24 24 # end … … 45 45 # @person = @company.people.create(params[:person]) 46 46 # 47 # respond_to do | wants|48 # wants.html { redirect_to(person_list_url) }49 # wants.js50 # wants.xml { render :xml => @person.to_xml(:include => @company) }47 # respond_to do |format| 48 # format.html { redirect_to(person_list_url) } 49 # format.js 50 # format.xml { render :xml => @person.to_xml(:include => @company) } 51 51 # end 52 52 # end