Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4759

Show
Ignore:
Timestamp:
08/14/06 14:33:40 (2 years ago)
Author:
marcel
Message:

Update respond_to docs to follow established naming convention

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/mime_responds.rb

    r4665 r4759  
    1818      #     @people = Person.find(:all) 
    1919      #  
    20       #     respond_to do |wants
    21       #       wants.html 
    22       #       wants.xml { render :xml => @people.to_xml } 
     20      #     respond_to do |format
     21      #       format.html 
     22      #       format.xml { render :xml => @people.to_xml } 
    2323      #     end 
    2424      #   end 
     
    4545      #     @person  = @company.people.create(params[:person]) 
    4646      #  
    47       #     respond_to do |wants
    48       #       wants.html { redirect_to(person_list_url) } 
    49       #       wants.js 
    50       #       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) } 
    5151      #     end 
    5252      #   end