From aa4af60aad5772458e8ba3bd08505781aeeb53a2 Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Sat, 5 Apr 2008 03:52:58 +0000 Subject: Improve documentation. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/CHANGELOG | 2 + actionpack/lib/action_controller/routing.rb | 4 +- .../lib/action_view/helpers/prototype_helper.rb | 8 ++-- actionpack/lib/action_view/helpers/url_helper.rb | 2 +- activerecord/CHANGELOG | 2 + activerecord/README | 11 +----- activerecord/lib/active_record/associations.rb | 8 ++-- .../associations/association_proxy.rb | 45 ++++++++++++++++++++++ activerecord/lib/active_record/base.rb | 5 +++ .../abstract/schema_statements.rb | 6 +-- activerecord/lib/active_record/reflection.rb | 21 ++++++---- activerecord/lib/active_record/transactions.rb | 2 +- activerecord/lib/active_record/validations.rb | 4 +- activeresource/CHANGELOG | 2 + .../lib/active_support/core_ext/array/access.rb | 6 +-- .../active_support/core_ext/array/conversions.rb | 8 +--- .../core_ext/array/extract_options.rb | 3 +- .../lib/active_support/core_ext/array/grouping.rb | 11 ++---- .../active_support/core_ext/array/random_access.rb | 2 +- activesupport/lib/active_support/core_ext/blank.rb | 5 ++- .../lib/active_support/core_ext/class/removal.rb | 33 ++++++++++++---- .../active_support/core_ext/date/calculations.rb | 4 +- .../core_ext/date_time/conversions.rb | 2 +- .../active_support/core_ext/integer/even_odd.rb | 4 +- .../active_support/core_ext/integer/inflections.rb | 2 - .../core_ext/object/instance_variables.rb | 2 +- .../lib/active_support/core_ext/string/unicode.rb | 8 ++-- .../active_support/core_ext/time/conversions.rb | 39 ++++++------------- .../lib/active_support/core_ext/time/zones.rb | 5 +-- activesupport/lib/active_support/whiny_nil.rb | 36 ++++++++++++----- 30 files changed, 177 insertions(+), 115 deletions(-) diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 04dd4aadd1..96c38f0e6e 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Improve documentation. [Xavier Noria, leethal, jerome] + * Ensure RJS redirect_to doesn't html-escapes string argument. Closes #8546 [josh, eventualbuddha, Pratik] * Support render :partial => collection of heterogeneous elements. #11491 [Zach Dennis] diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index 3cb8b7b93d..fa5a347db9 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -47,7 +47,7 @@ module ActionController # :controller maps to your controller name # :action maps to an action with your controllers # - # Other names simply map to a parameter as in the case of +:id+. + # Other names simply map to a parameter as in the case of :id. # # == Route priority # @@ -82,7 +82,7 @@ module ActionController # This sets up +blog+ as the default controller if no other is specified. # This means visiting '/' would invoke the blog controller. # - # More formally, you can define defaults in a route with the +:defaults+ key. + # More formally, you can define defaults in a route with the :defaults key. # # map.connect ':controller/:action/:id', :action => 'show', :defaults => { :page => 'Dashboard' } # diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb index 50feac5a0f..81938ac8e3 100644 --- a/actionpack/lib/action_view/helpers/prototype_helper.rb +++ b/actionpack/lib/action_view/helpers/prototype_helper.rb @@ -716,11 +716,11 @@ module ActionView # # Insert the rendered 'navigation' partial just before the DOM # # element with ID 'content'. # # Generates: new Insertion.Before("content", "-- Contents of 'navigation' partial --"); - # insert_html :before, 'content', :partial => 'navigation' + # page.insert_html :before, 'content', :partial => 'navigation' # # # Add a list item to the bottom of the