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

Changeset 976

Show
Ignore:
Timestamp:
03/22/05 13:09:44 (3 years ago)
Author:
david
Message:

Fixed documentation and prepared for 0.11.0 release

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionmailer/lib/action_mailer.rb

    r648 r976  
    2929  rescue LoadError 
    3030    require 'rubygems' 
    31     require_gem 'actionpack', '>= 0.9.0' 
     31    require_gem 'actionpack', '>= 1.6.0' 
    3232  end 
    3333end 
  • trunk/actionmailer/Rakefile

    r874 r976  
    99PKG_BUILD     = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' 
    1010PKG_NAME      = 'actionmailer' 
    11 PKG_VERSION   = '0.7.1' + PKG_BUILD 
     11PKG_VERSION   = '0.8.0' + PKG_BUILD 
    1212PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" 
    1313 
     
    5151  s.homepage = "http://www.rubyonrails.org" 
    5252 
    53   s.add_dependency('actionpack', '= 1.5.1' + PKG_BUILD) 
     53  s.add_dependency('actionpack', '= 1.6.0' + PKG_BUILD) 
    5454 
    5555  s.has_rdoc = true 
  • trunk/actionpack/lib/action_controller/routing.rb

    r954 r976  
    325325    end 
    326326     
    327     def self.extract_parameter_value(parameter) 
     327    def self.extract_parameter_value(parameter) #:nodoc: 
    328328      value = (parameter.respond_to?(:to_param) ? parameter.to_param : parameter).to_s 
    329329      CGI.escape(value) 
  • trunk/actionpack/lib/action_view/helpers/javascript_helper.rb

    r975 r976  
    88    # DOM. The common use case is having a form that adds a new element to a list without reloading the page. 
    99    # 
    10     # To be able to use the Javascript helpers, you must either call <%= define_javascript_functions %> (which returns all 
     10    # To be able to use the Javascript helpers, you must either call <tt><%= define_javascript_functions %></tt> (which returns all 
    1111    # the Javascript support functions in a <script> block) or reference the Javascript library using  
    12     # <%= javascript_include_tag "prototype" %> (which looks for the library in /javascripts/prototype.js). The latter is 
     12    # <tt><%= javascript_include_tag "prototype" %></tt> (which looks for the library in /javascripts/prototype.js). The latter is 
    1313    # recommended as the browser can then cache the library instead of fetching all the functions anew on every request. 
    1414    # 
  • trunk/actionpack/lib/action_view/helpers/pagination_helper.rb

    r967 r976  
    88    # 
    99    # <%= link_to "Next page", { :page => paginator.current.next } of paginator.current.next =%> 
    10     #  
    11     # 
    1210    module PaginationHelper 
    1311      unless const_defined?(:DEFAULT_OPTIONS) 
  • trunk/actionpack/lib/action_view/helpers/url_helper.rb

    r906 r976  
    3434      end 
    3535 
    36       # Creates a link tag on the image residing at the +src+ using an URL created by the set of +options+. This takes the same options  
    37       # as url_for. For a list, see the url_for documentation in link:classes/ActionController/Base.html#M000079.  
    38       # It's also possible to pass a string instead of an options hash to get a link tag that just points without consideration.  
    39       # The <tt>html_options</tt> works jointly for the image and ahref tag by letting the following special values enter the options on 
    40       # the image and the rest goes to the ahref: 
    41       # 
    42       # * <tt>:alt</tt> - If no alt text is given, the file name part of the +src+ is used (capitalized and without the extension) 
    43       # * <tt>:size</tt> - Supplied as "XxY", so "30x45" becomes width="30" and height="45" 
    44       # * <tt>:border</tt> - Draws a border around the link 
    45       # * <tt>:align</tt> - Sets the alignment, no special features 
    46       # 
    47       # The +src+ can be supplied as a... 
    48       # * full path, like "/my_images/image.gif" 
    49       # * file name, like "rss.gif", that gets expanded to "/images/rss.gif" 
    50       # * file name without extension, like "logo", that gets expanded to "/images/logo.png" 
    51       # 
    52       # Examples: 
    53       #   link_image_to "logo", { :controller => "home" }, :alt => "Homepage", :size => "45x80" 
    54       #   link_image_to "delete", { :action => "destroy" }, :size => "10x10", :confirm => "Are you sure?", "class" => "admin" 
    55       # 
    56       # NOTE: This tag is deprecated. Combine the link_to and image_tag yourself instead, like: 
     36      # This tag is deprecated. Combine the link_to and AssetTagHelper::image_tag yourself instead, like: 
    5737      #   link_to(image_tag("rss", :size => "30x45", :border => 0), "http://www.example.com") 
    5838      def link_image_to(src, options = {}, html_options = {}, *parameters_for_method_reference) 
  • trunk/actionpack/Rakefile

    r874 r976  
    99PKG_BUILD     = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' 
    1010PKG_NAME      = 'actionpack' 
    11 PKG_VERSION   = '1.5.1' + PKG_BUILD 
     11PKG_VERSION   = '1.6.0' + PKG_BUILD 
    1212PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" 
    1313 
     
    5858  s.requirements << 'none' 
    5959 
    60   s.add_dependency('activesupport', '= 1.0.1' + PKG_BUILD) 
     60  s.add_dependency('activesupport', '= 1.0.2' + PKG_BUILD) 
    6161 
    6262  s.require_path = 'lib' 
  • trunk/actionpack/README

    r975 r976  
    176176   
    177177  {Learn more}[link:classes/ActionView/Helpers/JavascriptHelper.html] 
     178 
     179 
     180* Pagination for navigating lists of results. 
     181 
     182    # controller 
     183    def list 
     184      @pages, @people = 
     185        paginate :people, :order_by => 'last_name, first_name' 
     186    end 
     187 
     188    # view 
     189    <%= link_to "Previous page", { :page => @pages.current.previous } if @pages.current.previous %> 
     190    <%= link_to "Next page", { :page => @pages.current.next } of @pages.current.next =%> 
     191 
     192  {Learn more}[link:classes/ActionController/Pagination.html] 
    178193 
    179194 
  • trunk/actionwebservice/lib/action_web_service/test_invoke.rb

    r830 r976  
    11require 'test/unit' 
    22 
    3 module Test 
    4   module Unit 
     3module Test # :nodoc: 
     4  module Unit # :nodoc: 
    55    class TestCase # :nodoc: 
    66      private 
  • trunk/actionwebservice/Rakefile

    r874 r976  
    1010PKG_BUILD     = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' 
    1111PKG_NAME      = 'actionwebservice' 
    12 PKG_VERSION   = '0.6.0' + PKG_BUILD 
     12PKG_VERSION   = '0.6.1' + PKG_BUILD 
    1313PKG_FILE_NAME   = "#{PKG_NAME}-#{PKG_VERSION}" 
    1414PKG_DESTINATION = ENV["RAILS_PKG_DESTINATION"] || "../#{PKG_NAME}" 
     
    5757  s.homepage = "http://www.rubyonrails.org" 
    5858 
    59   s.add_dependency('actionpack', '>= 1.5.1' + PKG_BUILD) 
    60   s.add_dependency('activerecord', '>= 1.8.0' + PKG_BUILD) 
    61   s.add_dependency('activesupport', '>= 1.0.1' + PKG_BUILD) 
     59  s.add_dependency('actionpack', '= 1.6.0' + PKG_BUILD) 
     60  s.add_dependency('activerecord', '= 1.9.0' + PKG_BUILD) 
     61  s.add_dependency('activesupport', '= 1.0.2' + PKG_BUILD) 
    6262 
    6363  s.has_rdoc = true 
  • trunk/activerecord/lib/active_record/migration.rb

    r819 r976  
    11module ActiveRecord 
    2   class IrreversibleMigration < ActiveRecordError 
     2  class IrreversibleMigration < ActiveRecordError#:nodoc: 
    33  end 
    44   
    5   class Migration 
     5  class Migration #:nodoc: 
    66    class << self 
    77      def up() end 
     
    1515  end 
    1616 
    17   class Migrator 
     17  class Migrator#:nodoc: 
    1818    class << self 
    1919      def up(migrations_path, target_version = nil) 
  • trunk/activerecord/Rakefile

    r875 r976  
    99PKG_BUILD     = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' 
    1010PKG_NAME      = 'activerecord' 
    11 PKG_VERSION   = '1.8.0' + PKG_BUILD 
     11PKG_VERSION   = '1.9.0' + PKG_BUILD 
    1212PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" 
    1313 
     
    118118  end 
    119119   
    120   s.add_dependency('activesupport', '= 1.0.1' + PKG_BUILD) 
     120  s.add_dependency('activesupport', '= 1.0.2' + PKG_BUILD) 
    121121 
    122122  s.files.delete "test/fixtures/fixture_database.sqlite" 
  • trunk/activesupport/Rakefile

    r874 r976  
    66PKG_BUILD     = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' 
    77PKG_NAME      = 'activesupport' 
    8 PKG_VERSION   = '1.0.1' + PKG_BUILD 
     8PKG_VERSION   = '1.0.2' + PKG_BUILD 
    99PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" 
    1010 
  • trunk/railties/Rakefile

    r956 r976  
    1010PKG_BUILD       = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' 
    1111PKG_NAME        = 'rails' 
    12 PKG_VERSION     = '0.10.1' + PKG_BUILD 
     12PKG_VERSION     = '0.11.0' + PKG_BUILD 
    1313PKG_FILE_NAME   = "#{PKG_NAME}-#{PKG_VERSION}" 
    1414PKG_DESTINATION = ENV["RAILS_PKG_DESTINATION"] || "../#{PKG_NAME}" 
     
    236236 
    237237  s.add_dependency('rake', '>= 0.4.15') 
    238   s.add_dependency('activesupport',    '= 1.0.1' + PKG_BUILD) 
    239   s.add_dependency('activerecord',     '= 1.8.0' + PKG_BUILD) 
    240   s.add_dependency('actionpack',       '= 1.5.1' + PKG_BUILD) 
    241   s.add_dependency('actionmailer',     '= 0.7.1' + PKG_BUILD) 
    242   s.add_dependency('actionwebservice', '= 0.6.0' + PKG_BUILD) 
     238  s.add_dependency('activesupport',    '= 1.0.2' + PKG_BUILD) 
     239  s.add_dependency('activerecord',     '= 1.9.0' + PKG_BUILD) 
     240  s.add_dependency('actionpack',       '= 1.7.0' + PKG_BUILD) 
     241  s.add_dependency('actionmailer',     '= 0.8.0' + PKG_BUILD) 
     242  s.add_dependency('actionwebservice', '= 0.6.1' + PKG_BUILD) 
    243243 
    244244  s.rdoc_options << '--exclude' << '.'