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

Changeset 4953

Show
Ignore:
Timestamp:
09/03/06 23:28:54 (2 years ago)
Author:
david
Message:

Docs and deprecation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r4952 r4953  
    11*SVN* 
     2 
     3* Added deprecation language for pagination which will become a plugin by Rails 2.0 [DHH] 
    24 
    35* Added deprecation language for in_place_editor and auto_complete_field that both pieces will become plugins by Rails 2.0 [DHH] 
  • trunk/actionpack/lib/action_controller/mime_responds.rb

    r4860 r4953  
    99      # might look something like this: 
    1010      # 
    11       #   def list 
     11      #   def index 
    1212      #     @people = Person.find(:all) 
    1313      #   end 
     
    1515      # Here's the same action, with web-service support baked in: 
    1616      #  
    17       #   def list 
     17      #   def index 
    1818      #     @people = Person.find(:all) 
    1919      #  
     
    3131      # (by name) if it does not already exist, without web-services, it might look like this: 
    3232      #  
    33       #   def add 
     33      #   def create 
    3434      #     @company = Company.find_or_create_by_name(params[:company][:name]) 
    3535      #     @person  = @company.people.create(params[:person]) 
     
    4040      # Here's the same action, with web-service support baked in: 
    4141      #  
    42       #   def add 
     42      #   def create 
    4343      #     company  = params[:person].delete(:company) 
    4444      #     @company = Company.find_or_create_by_name(company[:name]) 
     
    9898      #  
    9999      #   Mime::Type.register "image/jpg", :jpg 
    100       #  
    101100      def respond_to(*types, &block) 
    102101        raise ArgumentError, "respond_to takes either types or a block, never both" unless types.any? ^ block 
  • trunk/actionpack/lib/action_controller/mime_type.rb

    r4860 r4953  
    11module Mime 
    2   class Type #:nodoc: 
     2  # Encapsulates the notion of a mime type. Can be used at render time, for example, with: 
     3  # 
     4  #   class PostsController < ActionController::Base 
     5  #     def show 
     6  #       @post = Post.find(params[:id]) 
     7  # 
     8  #       respond_to do |format| 
     9  #         format.html 
     10  #         format.ics { render :text => post.to_ics, :mime_type => Mime::Type["text/calendar"]  } 
     11  #         format.xml { render :xml => @people.to_xml } 
     12  #       end 
     13  #     end 
     14  #   end 
     15  class Type 
    316    # A simple helper class used in parsing the accept header 
    417    class AcceptItem #:nodoc: 
  • trunk/actionpack/lib/action_controller/pagination.rb

    r4715 r4953  
    11module ActionController 
    22  # === Action Pack pagination for Active Record collections 
     3  # 
     4  # DEPRECATION WARNING: Pagination will be separated into its own plugin with Rails 2.0. 
    35  # 
    46  # The Pagination module aids in the process of paging large collections of