Changeset 4953
- Timestamp:
- 09/03/06 23:28:54 (2 years ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/mime_responds.rb (modified) (5 diffs)
- trunk/actionpack/lib/action_controller/mime_type.rb (modified) (1 diff)
- trunk/actionpack/lib/action_controller/pagination.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r4952 r4953 1 1 *SVN* 2 3 * Added deprecation language for pagination which will become a plugin by Rails 2.0 [DHH] 2 4 3 5 * 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 9 9 # might look something like this: 10 10 # 11 # def list11 # def index 12 12 # @people = Person.find(:all) 13 13 # end … … 15 15 # Here's the same action, with web-service support baked in: 16 16 # 17 # def list17 # def index 18 18 # @people = Person.find(:all) 19 19 # … … 31 31 # (by name) if it does not already exist, without web-services, it might look like this: 32 32 # 33 # def add33 # def create 34 34 # @company = Company.find_or_create_by_name(params[:company][:name]) 35 35 # @person = @company.people.create(params[:person]) … … 40 40 # Here's the same action, with web-service support baked in: 41 41 # 42 # def add42 # def create 43 43 # company = params[:person].delete(:company) 44 44 # @company = Company.find_or_create_by_name(company[:name]) … … 98 98 # 99 99 # Mime::Type.register "image/jpg", :jpg 100 #101 100 def respond_to(*types, &block) 102 101 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 1 1 module 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 3 16 # A simple helper class used in parsing the accept header 4 17 class AcceptItem #:nodoc: trunk/actionpack/lib/action_controller/pagination.rb
r4715 r4953 1 1 module ActionController 2 2 # === Action Pack pagination for Active Record collections 3 # 4 # DEPRECATION WARNING: Pagination will be separated into its own plugin with Rails 2.0. 3 5 # 4 6 # The Pagination module aids in the process of paging large collections of