<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -198,31 +198,31 @@ module ActionMailer #:nodoc:
   #
   # These options are specified on the class level, like &lt;tt&gt;ActionMailer::Base.template_root = &quot;/my/templates&quot;&lt;/tt&gt;
   #
-  # * &lt;tt&gt;template_root&lt;/tt&gt; - template root determines the base from which template references will be made.
+  # * &lt;tt&gt;template_root&lt;/tt&gt; - Determines the base from which template references will be made.
   #
   # * &lt;tt&gt;logger&lt;/tt&gt; - the logger is used for generating information on the mailing run if available.
   #   Can be set to nil for no logging. Compatible with both Ruby's own Logger and Log4r loggers.
   #
-  # * &lt;tt&gt;smtp_settings&lt;/tt&gt; -  Allows detailed configuration for :smtp delivery method:
+  # * &lt;tt&gt;smtp_settings&lt;/tt&gt; - Allows detailed configuration for &lt;tt&gt;:smtp&lt;/tt&gt; delivery method:
   #   * &lt;tt&gt;:address&lt;/tt&gt; Allows you to use a remote mail server. Just change it from its default &quot;localhost&quot; setting.
   #   * &lt;tt&gt;:port&lt;/tt&gt; On the off chance that your mail server doesn't run on port 25, you can change it.
   #   * &lt;tt&gt;:domain&lt;/tt&gt; If you need to specify a HELO domain, you can do it here.
   #   * &lt;tt&gt;:user_name&lt;/tt&gt; If your mail server requires authentication, set the username in this setting.
   #   * &lt;tt&gt;:password&lt;/tt&gt; If your mail server requires authentication, set the password in this setting.
   #   * &lt;tt&gt;:authentication&lt;/tt&gt; If your mail server requires authentication, you need to specify the authentication type here. 
-  #     This is a symbol and one of :plain, :login, :cram_md5
+  #     This is a symbol and one of &lt;tt&gt;:plain&lt;/tt&gt;, &lt;tt&gt;:login&lt;/tt&gt;, &lt;tt&gt;:cram_md5&lt;/tt&gt;
   #
-  # * &lt;tt&gt;sendmail_settings&lt;/tt&gt; - Allows you to override options for the :sendmail delivery method
+  # * &lt;tt&gt;sendmail_settings&lt;/tt&gt; - Allows you to override options for the &lt;tt&gt;:sendmail&lt;/tt&gt; delivery method
   #   * &lt;tt&gt;:location&lt;/tt&gt; The location of the sendmail executable, defaults to &quot;/usr/sbin/sendmail&quot;
   #   * &lt;tt&gt;:arguments&lt;/tt&gt; The command line arguments
   # * &lt;tt&gt;raise_delivery_errors&lt;/tt&gt; - whether or not errors should be raised if the email fails to be delivered.
   #
-  # * &lt;tt&gt;delivery_method&lt;/tt&gt; - Defines a delivery method. Possible values are :smtp (default), :sendmail, and :test.
+  # * &lt;tt&gt;delivery_method&lt;/tt&gt; - Defines a delivery method. Possible values are &lt;tt&gt;:smtp&lt;/tt&gt; (default), &lt;tt&gt;:sendmail&lt;/tt&gt;, and &lt;tt&gt;:test&lt;/tt&gt;.
   #
   # * &lt;tt&gt;perform_deliveries&lt;/tt&gt; - Determines whether deliver_* methods are actually carried out. By default they are,
   #   but this can be turned off to help functional testing.
   #
-  # * &lt;tt&gt;deliveries&lt;/tt&gt; - Keeps an array of all the emails sent out through the Action Mailer with delivery_method :test. Most useful
+  # * &lt;tt&gt;deliveries&lt;/tt&gt; - Keeps an array of all the emails sent out through the Action Mailer with &lt;tt&gt;delivery_method :test&lt;/tt&gt;. Most useful
   #   for unit and functional testing.
   #
   # * &lt;tt&gt;default_charset&lt;/tt&gt; - The default charset used for the body and to encode the subject. Defaults to UTF-8. You can also </diff>
      <filename>actionmailer/lib/action_mailer/base.rb</filename>
    </modified>
    <modified>
      <diff>@@ -332,7 +332,8 @@ module ActionController #:nodoc:
     @@resources_path_names = { :new =&gt; 'new', :edit =&gt; 'edit' }
     cattr_accessor :resources_path_names
 
-    # Sets the token parameter name for RequestForgery.  Calling #protect_from_forgery sets it to :authenticity_token by default
+    # Sets the token parameter name for RequestForgery. Calling +protect_from_forgery+
+    # sets it to &lt;tt&gt;:authenticity_token&lt;/tt&gt; by default.
     cattr_accessor :request_forgery_protection_token
 
     # Indicates whether or not optimise the generated named
@@ -544,8 +545,8 @@ module ActionController #:nodoc:
       # * &lt;tt&gt;:host&lt;/tt&gt; -- overrides the default (current) host if provided.
       # * &lt;tt&gt;:protocol&lt;/tt&gt; -- overrides the default (current) protocol if provided.
       # * &lt;tt&gt;:port&lt;/tt&gt; -- optionally specify the port to connect to.
-      # * &lt;tt&gt;:user&lt;/tt&gt; -- Inline HTTP authentication (only plucked out if :password is also present).
-      # * &lt;tt&gt;:password&lt;/tt&gt; -- Inline HTTP authentication (only plucked out if :user is also present).
+      # * &lt;tt&gt;:user&lt;/tt&gt; -- Inline HTTP authentication (only plucked out if &lt;tt&gt;:password&lt;/tt&gt; is also present).
+      # * &lt;tt&gt;:password&lt;/tt&gt; -- Inline HTTP authentication (only plucked out if &lt;tt&gt;:user&lt;/tt&gt; is also present).
       # * &lt;tt&gt;:skip_relative_url_root&lt;/tt&gt; -- if true, the url is not constructed using the relative_url_root of the request so the path
       #   will include the web server relative installation directory.
       #
@@ -598,7 +599,7 @@ module ActionController #:nodoc:
       #   url_for :controller =&gt; 'posts', :action =&gt; nil
       #
       # If you explicitly want to create a URL that's almost the same as the current URL, you can do so using the
-      # :overwrite_params options. Say for your posts you have different views for showing and printing them.
+      # &lt;tt&gt;:overwrite_params&lt;/tt&gt; options. Say for your posts you have different views for showing and printing them.
       # Then, in the show view, you get the URL for the print view like this
       #
       #   url_for :overwrite_params =&gt; { :action =&gt; 'print' }
@@ -769,7 +770,7 @@ module ActionController #:nodoc:
       #   # placed in &quot;app/views/layouts/special.r(html|xml)&quot;
       #   render :text =&gt; &quot;Hi there!&quot;, :layout =&gt; &quot;special&quot;
       #
-      # The :text option can also accept a Proc object, which can be used to manually control the page generation. This should
+      # The &lt;tt&gt;:text&lt;/tt&gt; option can also accept a Proc object, which can be used to manually control the page generation. This should
       # generally be avoided, as it violates the separation between code and content, and because almost everything that can be
       # done with this method can also be done more cleanly using one of the other rendering methods, most notably templates.
       #
@@ -823,7 +824,7 @@ module ActionController #:nodoc:
       #
       # === Rendering with status and location headers
       #
-      # All renders take the :status and :location options and turn them into headers. They can even be used together:
+      # All renders take the &lt;tt&gt;:status&lt;/tt&gt; and &lt;tt&gt;:location&lt;/tt&gt; options and turn them into headers. They can even be used together:
       #
       #   render :xml =&gt; post.to_xml, :status =&gt; :created, :location =&gt; post_url(post)
       def render(options = nil, extra_options = {}, &amp;block) #:doc:</diff>
      <filename>actionpack/lib/action_controller/base.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,31 +1,38 @@
 module ActionController #:nodoc:
-  # Cookies are read and written through ActionController#cookies. The cookies being read are what were received along with the request,
-  # the cookies being written are what will be sent out with the response. Cookies are read by value (so you won't get the cookie object
-  # itself back -- just the value it holds). Examples for writing:
+  # Cookies are read and written through ActionController#cookies.
   #
-  #   cookies[:user_name] = &quot;david&quot; # =&gt; Will set a simple session cookie
+  # The cookies being read are the ones received along with the request, the cookies
+  # being written will be sent out with the response. Reading a cookie does not get
+  # the cookie object itself back, just the value it holds.
+  #
+  # Examples for writing:
+  #
+  #   # Sets a simple session cookie.
+  #   cookies[:user_name] = &quot;david&quot;
+  #
+  #   # Sets a cookie that expires in 1 hour.
   #   cookies[:login] = { :value =&gt; &quot;XJ-122&quot;, :expires =&gt; 1.hour.from_now }
-  #   # =&gt; Will set a cookie that expires in 1 hour
   #
   # Examples for reading:
   #
   #   cookies[:user_name] # =&gt; &quot;david&quot;
-  #   cookies.size         # =&gt; 2
+  #   cookies.size        # =&gt; 2
   #
   # Example for deleting:
   #
   #   cookies.delete :user_name
   #
-  # All the option symbols for setting cookies are:
+  # The option symbols for setting cookies are:
   #
-  # * &lt;tt&gt;value&lt;/tt&gt; - the cookie's value or list of values (as an array).
-  # * &lt;tt&gt;path&lt;/tt&gt; - the path for which this cookie applies.  Defaults to the root of the application.
-  # * &lt;tt&gt;domain&lt;/tt&gt; - the domain for which this cookie applies.
-  # * &lt;tt&gt;expires&lt;/tt&gt; - the time at which this cookie expires, as a +Time+ object.
-  # * &lt;tt&gt;secure&lt;/tt&gt; - whether this cookie is a secure cookie or not (default to false).
-  #                     Secure cookies are only transmitted to HTTPS servers.
-  # * &lt;tt&gt;http_only&lt;/tt&gt; - whether this cookie is accessible via scripting or only HTTP (defaults to false).
-  
+  # * &lt;tt&gt;:value&lt;/tt&gt; - The cookie's value or list of values (as an array).
+  # * &lt;tt&gt;:path&lt;/tt&gt; - The path for which this cookie applies.  Defaults to the root
+  #   of the application.
+  # * &lt;tt&gt;:domain&lt;/tt&gt; - The domain for which this cookie applies.
+  # * &lt;tt&gt;:expires&lt;/tt&gt; - The time at which this cookie expires, as a Time object.
+  # * &lt;tt&gt;:secure&lt;/tt&gt; - Whether this cookie is a only transmitted to HTTPS servers.
+  #   Default is +false+.
+  # * &lt;tt&gt;:http_only&lt;/tt&gt; - Whether this cookie is accessible via scripting or
+  #   only HTTP. Defaults to +false+.
   module Cookies
     def self.included(base)
       base.helper_method :cookies
@@ -45,8 +52,7 @@ module ActionController #:nodoc:
       update(@cookies)
     end
 
-    # Returns the value of the cookie by +name+ -- or nil if no such cookie exists. You set new cookies using cookies[]=
-    # (for simple name/value cookies without options).
+    # Returns the value of the cookie by +name+, or +nil+ if no such cookie exists.
     def [](name)
       cookie = @cookies[name.to_s]
       if cookie &amp;&amp; cookie.respond_to?(:value)
@@ -54,6 +60,8 @@ module ActionController #:nodoc:
       end
     end
 
+    # Sets the cookie named +name+. The second argument may be the very cookie
+    # value, or a hash of options as documented above.
     def []=(name, options)
       if options.is_a?(Hash)
         options = options.inject({}) { |options, pair| options[pair.first.to_s] = pair.last; options }
@@ -66,14 +74,18 @@ module ActionController #:nodoc:
     end
 
     # Removes the cookie on the client machine by setting the value to an empty string
-    # and setting its expiration date into the past.  Like []=, you can pass in an options
-    # hash to delete cookies with extra data such as a +path+.
+    # and setting its expiration date into the past. Like &lt;tt&gt;[]=&lt;/tt&gt;, you can pass in
+    # an options hash to delete cookies with extra data such as a &lt;tt&gt;:path&lt;/tt&gt;.
     def delete(name, options = {})
       options.stringify_keys!
       set_cookie(options.merge(&quot;name&quot; =&gt; name.to_s, &quot;value&quot; =&gt; &quot;&quot;, &quot;expires&quot; =&gt; Time.at(0)))
     end
 
     private
+      # Builds a CGI::Cookie object and adds the cookie to the response headers.
+      #
+      # The path of the cookie defaults to &quot;/&quot; if there's none in +options+, and
+      # everything is passed to the CGI::Cookie constructor.
       def set_cookie(options) #:doc:
         options[&quot;path&quot;] = &quot;/&quot; unless options[&quot;path&quot;]
         cookie = CGI::Cookie.new(options)</diff>
      <filename>actionpack/lib/action_controller/cookies.rb</filename>
    </modified>
    <modified>
      <diff>@@ -126,8 +126,8 @@ module ActionController #:nodoc:
     #   end
     #
     # To use a filter object with around_filter, pass an object responding
-    # to :filter or both :before and :after. With a filter method, yield to
-    # the block as above:
+    # to &lt;tt&gt;:filter&lt;/tt&gt; or both &lt;tt&gt;:before&lt;/tt&gt; and &lt;tt&gt;:after&lt;/tt&gt;. With a
+    # filter method, yield to the block as above:
     #
     #   around_filter BenchmarkingFilter
     #
@@ -191,8 +191,9 @@ module ActionController #:nodoc:
     # == Filter conditions
     #
     # Filters may be limited to specific actions by declaring the actions to
-    # include or exclude. Both options accept single actions (:only =&gt; :index)
-    # or arrays of actions (:except =&gt; [:foo, :bar]).
+    # include or exclude. Both options accept single actions
+    # (&lt;tt&gt;:only =&gt; :index&lt;/tt&gt;) or arrays of actions
+    # (&lt;tt&gt;:except =&gt; [:foo, :bar]&lt;/tt&gt;).
     #
     #   class Journal &lt; ActionController::Base
     #     # Require authentication for edit and delete.</diff>
      <filename>actionpack/lib/action_controller/filters.rb</filename>
    </modified>
    <modified>
      <diff>@@ -143,11 +143,19 @@ module ActionController #:nodoc:
       # Declare a controller method as a helper. For example, the following
       # makes the +current_user+ controller method available to the view:
       #   class ApplicationController &lt; ActionController::Base
-      #     helper_method :current_user
+      #     helper_method :current_user, :logged_in?
+      #
       #     def current_user
-      #       @current_user ||= User.find(session[:user])
+      #       @current_user ||= User.find_by_id(session[:user])
       #     end
+      #
+      #      def logged_in?
+      #        current_user != nil
+      #      end
       #   end
+      #
+      # In a view:
+      #  &lt;% if logged_in? -%&gt;Welcome, &lt;%= current_user.name %&gt;&lt;% end -%&gt;
       def helper_method(*methods)
         methods.flatten.each do |method|
           master_helper_module.module_eval &lt;&lt;-end_eval</diff>
      <filename>actionpack/lib/action_controller/helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -19,7 +19,7 @@ module ActionController
   # * &lt;tt&gt;url_for&lt;/tt&gt;, so you can use it with a record as the argument, e.g.
   #   &lt;tt&gt;url_for(@article)&lt;/tt&gt;;
   # * ActionView::Helpers::FormHelper uses &lt;tt&gt;polymorphic_path&lt;/tt&gt;, so you can write
-  #   &lt;tt&gt;form_for(@article)&lt;/tt&gt; without having to specify :url parameter for the form
+  #   &lt;tt&gt;form_for(@article)&lt;/tt&gt; without having to specify &lt;tt&gt;:url&lt;/tt&gt; parameter for the form
   #   action;
   # * &lt;tt&gt;redirect_to&lt;/tt&gt; (which, in fact, uses &lt;tt&gt;url_for&lt;/tt&gt;) so you can write
   #   &lt;tt&gt;redirect_to(post)&lt;/tt&gt; in your controllers;</diff>
      <filename>actionpack/lib/action_controller/polymorphic_routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,7 +15,7 @@ module ActionController
     # such as { 'RAILS_ENV' =&gt; 'production' }.
     attr_reader :env
 
-    # The true HTTP request method as a lowercase symbol, such as :get.
+    # The true HTTP request method as a lowercase symbol, such as &lt;tt&gt;:get&lt;/tt&gt;.
     # UnknownHttpMethod is raised for invalid methods not listed in ACCEPTED_HTTP_METHODS.
     def request_method
       @request_method ||= begin
@@ -28,35 +28,35 @@ module ActionController
       end
     end
 
-    # The HTTP request method as a lowercase symbol, such as :get.
-    # Note, HEAD is returned as :get since the two are functionally
+    # The HTTP request method as a lowercase symbol, such as &lt;tt&gt;:get&lt;/tt&gt;.
+    # Note, HEAD is returned as &lt;tt&gt;:get&lt;/tt&gt; since the two are functionally
     # equivalent from the application's perspective.
     def method
       request_method == :head ? :get : request_method
     end
 
-    # Is this a GET (or HEAD) request?  Equivalent to request.method == :get
+    # Is this a GET (or HEAD) request?  Equivalent to &lt;tt&gt;request.method == :get&lt;/tt&gt;.
     def get?
       method == :get
     end
 
-    # Is this a POST request?  Equivalent to request.method == :post
+    # Is this a POST request?  Equivalent to &lt;tt&gt;request.method == :post&lt;/tt&gt;.
     def post?
       request_method == :post
     end
 
-    # Is this a PUT request?  Equivalent to request.method == :put
+    # Is this a PUT request?  Equivalent to &lt;tt&gt;request.method == :put&lt;/tt&gt;.
     def put?
       request_method == :put
     end
 
-    # Is this a DELETE request?  Equivalent to request.method == :delete
+    # Is this a DELETE request?  Equivalent to &lt;tt&gt;request.method == :delete&lt;/tt&gt;.
     def delete?
       request_method == :delete
     end
 
-    # Is this a HEAD request? request.method sees HEAD as :get, so check the
-    # HTTP method directly.
+    # Is this a HEAD request? &lt;tt&gt;request.method&lt;/tt&gt; sees HEAD as &lt;tt&gt;:get&lt;/tt&gt;,
+    # so check the HTTP method directly.
     def head?
       request_method == :head
     end</diff>
      <filename>actionpack/lib/action_controller/request.rb</filename>
    </modified>
    <modified>
      <diff>@@ -102,7 +102,8 @@ module ActionController #:nodoc:
         request.format.html? || request.format.js?
       end
     
-      # Sets the token value for the current session.  Pass a :secret option in #protect_from_forgery to add a custom salt to the hash.
+      # Sets the token value for the current session.  Pass a &lt;tt&gt;:secret&lt;/tt&gt; option
+      # in +protect_from_forgery+ to add a custom salt to the hash.
       def form_authenticity_token
         @form_authenticity_token ||= if request_forgery_protection_options[:secret]
           authenticity_token_from_session_id</diff>
      <filename>actionpack/lib/action_controller/request_forgery_protection.rb</filename>
    </modified>
    <modified>
      <diff>@@ -58,33 +58,35 @@ module ActionController #:nodoc:
       # Rescue exceptions raised in controller actions.
       #
       # &lt;tt&gt;rescue_from&lt;/tt&gt; receives a series of exception classes or class
-      # names, and a trailing :with option with the name of a method or a Proc
-      # object to be called to handle them. Alternatively a block can be given.
+      # names, and a trailing &lt;tt&gt;:with&lt;/tt&gt; option with the name of a method
+      # or a Proc object to be called to handle them. Alternatively a block can
+      # be given.
       #
       # Handlers that take one argument will be called with the exception, so
       # that the exception can be inspected when dealing with it.
       #
       # Handlers are inherited. They are searched from right to left, from
       # bottom to top, and up the hierarchy. The handler of the first class for
-      # which exception.is_a?(klass) holds true is the one invoked, if any.
+      # which &lt;tt&gt;exception.is_a?(klass)&lt;/tt&gt; holds true is the one invoked, if
+      # any.
       #
-      # class ApplicationController &lt; ActionController::Base
-      #   rescue_from User::NotAuthorized, :with =&gt; :deny_access # self defined exception
-      #   rescue_from ActiveRecord::RecordInvalid, :with =&gt; :show_errors
+      #   class ApplicationController &lt; ActionController::Base
+      #     rescue_from User::NotAuthorized, :with =&gt; :deny_access # self defined exception
+      #     rescue_from ActiveRecord::RecordInvalid, :with =&gt; :show_errors
       #
-      #   rescue_from 'MyAppError::Base' do |exception|
-      #     render :xml =&gt; exception, :status =&gt; 500
-      #   end
-      #
-      #   protected
-      #     def deny_access
-      #       ...
+      #     rescue_from 'MyAppError::Base' do |exception|
+      #       render :xml =&gt; exception, :status =&gt; 500
       #     end
       #
-      #     def show_errors(exception)
-      #       exception.record.new_record? ? ...
-      #     end
-      # end
+      #     protected
+      #       def deny_access
+      #         ...
+      #       end
+      #
+      #       def show_errors(exception)
+      #         exception.record.new_record? ? ...
+      #       end
+      #   end
       def rescue_from(*klasses, &amp;block)
         options = klasses.extract_options!
         unless options.has_key?(:with)</diff>
      <filename>actionpack/lib/action_controller/rescue.rb</filename>
    </modified>
    <modified>
      <diff>@@ -240,12 +240,12 @@ module ActionController
     # * &lt;tt&gt;:collection&lt;/tt&gt; - add named routes for other actions that operate on the collection.
     #   Takes a hash of &lt;tt&gt;#{action} =&gt; #{method}&lt;/tt&gt;, where method is &lt;tt&gt;:get&lt;/tt&gt;/&lt;tt&gt;:post&lt;/tt&gt;/&lt;tt&gt;:put&lt;/tt&gt;/&lt;tt&gt;:delete&lt;/tt&gt;
     #   or &lt;tt&gt;:any&lt;/tt&gt; if the method does not matter.  These routes map to a URL like /messages/rss, with a route of rss_messages_url.
-    # * &lt;tt&gt;:member&lt;/tt&gt; - same as :collection, but for actions that operate on a specific member.
-    # * &lt;tt&gt;:new&lt;/tt&gt; - same as :collection, but for actions that operate on the new resource action.
+    # * &lt;tt&gt;:member&lt;/tt&gt; - same as &lt;tt&gt;:collection&lt;/tt&gt;, but for actions that operate on a specific member.
+    # * &lt;tt&gt;:new&lt;/tt&gt; - same as &lt;tt&gt;:collection&lt;/tt&gt;, but for actions that operate on the new resource action.
     # * &lt;tt&gt;:controller&lt;/tt&gt; - specify the controller name for the routes.
     # * &lt;tt&gt;:singular&lt;/tt&gt; - specify the singular name used in the member routes.
     # * &lt;tt&gt;:requirements&lt;/tt&gt; - set custom routing parameter requirements.
-    # * &lt;tt&gt;:conditions&lt;/tt&gt; - specify custom routing recognition conditions.  Resources sets the :method value for the method-specific routes.
+    # * &lt;tt&gt;:conditions&lt;/tt&gt; - specify custom routing recognition conditions.  Resources sets the &lt;tt&gt;:method&lt;/tt&gt; value for the method-specific routes.
     # * &lt;tt&gt;:as&lt;/tt&gt; - specify a different resource name to use in the URL path. For example:
     #     # products_path == '/productos'
     #     map.resources :products, :as =&gt; 'productos' do |product|
@@ -254,7 +254,7 @@ module ActionController
     #     end
     #
     # * &lt;tt&gt;:has_one&lt;/tt&gt; - specify nested resources, this is a shorthand for mapping singleton resources beneath the current.
-    # * &lt;tt&gt;:has_many&lt;/tt&gt; -  same has :has_one, but for plural resources.
+    # * &lt;tt&gt;:has_many&lt;/tt&gt; -  same has &lt;tt&gt;:has_one&lt;/tt&gt;, but for plural resources.
     #
     #   You may directly specify the routing association with has_one and has_many like:
     #
@@ -288,7 +288,7 @@ module ActionController
     #       article.resources :comments
     #     end
     #
-    #   The comment resources work the same, but must now include a value for :article_id.
+    #   The comment resources work the same, but must now include a value for &lt;tt&gt;:article_id&lt;/tt&gt;.
     #
     #     article_comments_url(@article)
     #     article_comment_url(@article, @comment)
@@ -302,7 +302,7 @@ module ActionController
     #     map.resources :tags, :path_prefix =&gt; '/books/:book_id', :name_prefix =&gt; 'book_'
     #     map.resources :tags, :path_prefix =&gt; '/toys/:toy_id',   :name_prefix =&gt; 'toy_'
     #
-    # You may also use :name_prefix to override the generic named routes in a nested resource:
+    # You may also use &lt;tt&gt;:name_prefix&lt;/tt&gt; to override the generic named routes in a nested resource:
     # 
     #   map.resources :articles do |article|
     #     article.resources :comments, :name_prefix =&gt; nil
@@ -364,7 +364,7 @@ module ActionController
     #
     # See map.resources for general conventions.  These are the main differences:
     # * A singular name is given to map.resource.  The default controller name is still taken from the plural name.
-    # * To specify a custom plural name, use the :plural option.  There is no :singular option.
+    # * To specify a custom plural name, use the &lt;tt&gt;:plural&lt;/tt&gt; option.  There is no &lt;tt&gt;:singular&lt;/tt&gt; option.
     # * No default index route is created for the singleton resource controller.
     # * When nesting singleton resources, only the singular name is used as the path prefix (example: 'account/messages/1')
     #</diff>
      <filename>actionpack/lib/action_controller/resources.rb</filename>
    </modified>
    <modified>
      <diff>@@ -23,7 +23,8 @@ module ActionController
   #   map.connect ':controller/:action/:id'
   #
   # This route states that it expects requests to consist of a
-  # :controller followed by an :action that in turn is fed some :id.
+  # &lt;tt&gt;:controller&lt;/tt&gt; followed by an &lt;tt&gt;:action&lt;/tt&gt; that in turn is fed
+  # some &lt;tt&gt;:id&lt;/tt&gt;.
   #
   # Suppose you get an incoming request for &lt;tt&gt;/blog/edit/22&lt;/tt&gt;, you'll end up
   # with:
@@ -36,11 +37,11 @@ module ActionController
   # Think of creating routes as drawing a map for your requests. The map tells
   # them where to go based on some predefined pattern:
   #
-  #  ActionController::Routing::Routes.draw do |map|
-  #   Pattern 1 tells some request to go to one place
-  #   Pattern 2 tell them to go to another
-  #   ...
-  #  end
+  #   ActionController::Routing::Routes.draw do |map|
+  #     Pattern 1 tells some request to go to one place
+  #     Pattern 2 tell them to go to another
+  #     ...
+  #   end
   #
   # The following symbols are special:
   #
@@ -59,12 +60,12 @@ module ActionController
   # Within blocks, the empty pattern is at the highest priority.
   # In practice this works out nicely:
   #
-  #  ActionController::Routing::Routes.draw do |map|
-  #    map.with_options :controller =&gt; 'blog' do |blog|
-  #      blog.show '',  :action =&gt; 'list'
-  #    end
-  #    map.connect ':controller/:action/:view'
-  #  end
+  #   ActionController::Routing::Routes.draw do |map|
+  #     map.with_options :controller =&gt; 'blog' do |blog|
+  #       blog.show '',  :action =&gt; 'list'
+  #     end
+  #     map.connect ':controller/:action/:view'
+  #   end
   #
   # In this case, invoking blog controller (with an URL like '/blog/')
   # without parameters will activate the 'list' action by default.
@@ -75,9 +76,10 @@ module ActionController
   # Hash at the end of your mapping to set any default parameters.
   #
   # Example:
-  #  ActionController::Routing:Routes.draw do |map|
-  #    map.connect ':controller/:action/:id', :controller =&gt; 'blog'
-  #  end
+  #
+  #   ActionController::Routing:Routes.draw do |map|
+  #     map.connect ':controller/:action/:id', :controller =&gt; 'blog'
+  #   end
   #
   # This sets up +blog+ as the default controller if no other is specified.
   # This means visiting '/' would invoke the blog controller.
@@ -93,6 +95,7 @@ module ActionController
   # for the full URL and +name_of_route_path+ for the URI path.
   #
   # Example:
+  #
   #   # In routes.rb
   #   map.login 'login', :controller =&gt; 'accounts', :action =&gt; 'login'
   #
@@ -138,22 +141,23 @@ module ActionController
   #
   # Routes can generate pretty URLs. For example:
   #
-  #  map.connect 'articles/:year/:month/:day',
-  #              :controller =&gt; 'articles',
-  #              :action     =&gt; 'find_by_date',
-  #              :year       =&gt; /\d{4}/,
-  #              :month      =&gt; /\d{1,2}/,
-  #              :day        =&gt; /\d{1,2}/
+  #   map.connect 'articles/:year/:month/:day',
+  #               :controller =&gt; 'articles',
+  #               :action     =&gt; 'find_by_date',
+  #               :year       =&gt; /\d{4}/,
+  #               :month      =&gt; /\d{1,2}/,
+  #               :day        =&gt; /\d{1,2}/
+  #
+  # Using the route above, the URL &quot;http://localhost:3000/articles/2005/11/06&quot;
+  # maps to
   #
-  #  # Using the route above, the url below maps to:
-  #  # params = {:year =&gt; '2005', :month =&gt; '11', :day =&gt; '06'}
-  #  # http://localhost:3000/articles/2005/11/06
+  #   params = {:year =&gt; '2005', :month =&gt; '11', :day =&gt; '06'}
   #
   # == Regular Expressions and parameters
   # You can specify a regular expression to define a format for a parameter.
   #
-  #  map.geocode 'geocode/:postalcode', :controller =&gt; 'geocode',
-  #              :action =&gt; 'show', :postalcode =&gt; /\d{5}(-\d{4})?/
+  #   map.geocode 'geocode/:postalcode', :controller =&gt; 'geocode',
+  #               :action =&gt; 'show', :postalcode =&gt; /\d{5}(-\d{4})?/
   #
   # or, more formally:
   #
@@ -182,7 +186,7 @@ module ActionController
   #
   # Specifying &lt;tt&gt;*[string]&lt;/tt&gt; as part of a rule like:
   #
-  #  map.connect '*path' , :controller =&gt; 'blog' , :action =&gt; 'unrecognized?'
+  #   map.connect '*path' , :controller =&gt; 'blog' , :action =&gt; 'unrecognized?'
   #
   # will glob all remaining parts of the route that were not recognized earlier. This idiom
   # must appear at the end of the path. The globbed values are in &lt;tt&gt;params[:path]&lt;/tt&gt; in
@@ -210,7 +214,7 @@ module ActionController
   #
   # You can reload routes if you feel you must:
   #
-  #  ActionController::Routing::Routes.reload
+  #   ActionController::Routing::Routes.reload
   #
   # This will clear all named routes and reload routes.rb if the file has been modified from
   # last load. To absolutely force reloading, use +reload!+.
@@ -221,19 +225,19 @@ module ActionController
   #
   # === +assert_routing+
   #
-  #  def test_movie_route_properly_splits
-  #   opts = {:controller =&gt; &quot;plugin&quot;, :action =&gt; &quot;checkout&quot;, :id =&gt; &quot;2&quot;}
-  #   assert_routing &quot;plugin/checkout/2&quot;, opts
-  #  end
+  #   def test_movie_route_properly_splits
+  #    opts = {:controller =&gt; &quot;plugin&quot;, :action =&gt; &quot;checkout&quot;, :id =&gt; &quot;2&quot;}
+  #    assert_routing &quot;plugin/checkout/2&quot;, opts
+  #   end
   #
   # +assert_routing+ lets you test whether or not the route properly resolves into options.
   #
   # === +assert_recognizes+
   #
-  #  def test_route_has_options
-  #   opts = {:controller =&gt; &quot;plugin&quot;, :action =&gt; &quot;show&quot;, :id =&gt; &quot;12&quot;}
-  #   assert_recognizes opts, &quot;/plugins/show/12&quot;
-  #  end
+  #   def test_route_has_options
+  #    opts = {:controller =&gt; &quot;plugin&quot;, :action =&gt; &quot;show&quot;, :id =&gt; &quot;12&quot;}
+  #    assert_recognizes opts, &quot;/plugins/show/12&quot;
+  #   end
   #
   # Note the subtle difference between the two: +assert_routing+ tests that
   # a URL fits options while +assert_recognizes+ tests that a URL
@@ -241,16 +245,16 @@ module ActionController
   #
   # In tests you can simply pass the URL or named route to +get+ or +post+.
   #
-  #  def send_to_jail
-  #    get '/jail'
-  #    assert_response :success
-  #    assert_template &quot;jail/front&quot;
-  #  end
+  #   def send_to_jail
+  #     get '/jail'
+  #     assert_response :success
+  #     assert_template &quot;jail/front&quot;
+  #   end
   #
-  #  def goes_to_login
-  #    get login_url
-  #    #...
-  #  end
+  #   def goes_to_login
+  #     get login_url
+  #     #...
+  #   end
   #
   # == View a list of all your routes
   #</diff>
      <filename>actionpack/lib/action_controller/routing.rb</filename>
    </modified>
    <modified>
      <diff>@@ -124,7 +124,7 @@ module ActionController
         route_requirements
       end
 
-      # Assign default options, such as 'index' as a default for :action. This
+      # Assign default options, such as 'index' as a default for &lt;tt&gt;:action&lt;/tt&gt;. This
       # method must be run *after* user supplied requirements and defaults have
       # been applied to the segments.
       def assign_default_route_options(segments)
@@ -187,7 +187,7 @@ module ActionController
         end
 
         # Routes cannot use the current string interpolation method
-        # if there are user-supplied :requirements as the interpolation
+        # if there are user-supplied &lt;tt&gt;:requirements&lt;/tt&gt; as the interpolation
         # code won't raise RoutingErrors when generating
         if options.key?(:requirements) || route.requirements.keys.to_set != Routing::ALLOWED_REQUIREMENTS_FOR_OPTIMISATION
           route.optimise = false</diff>
      <filename>actionpack/lib/action_controller/routing/builder.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,11 +1,11 @@
 module ActionController
   module Routing
     # Much of the slow performance from routes comes from the 
-    # complexity of expiry, :requirements matching, defaults providing
+    # complexity of expiry, &lt;tt&gt;:requirements&lt;/tt&gt; matching, defaults providing
     # and figuring out which url pattern to use.  With named routes 
     # we can avoid the expense of finding the right route.  So if 
     # they've provided the right number of arguments, and have no
-    # :requirements, we can just build up a string and return it.
+    # &lt;tt&gt;:requirements&lt;/tt&gt;, we can just build up a string and return it.
     # 
     # To support building optimisations for other common cases, the 
     # generation code is separated into several classes 
@@ -41,19 +41,20 @@ module ActionController
           end
         end
 
-        # Temporarily disabled :url optimisation pending proper solution to 
+        # Temporarily disabled &lt;tt&gt;:url&lt;/tt&gt; optimisation pending proper solution to
         # Issues around request.host etc.
         def applicable?
           true
         end
       end
 
-      # Given a route:
-      # map.person '/people/:id'
+      # Given a route
       #
-      # If the user calls person_url(@person), we can simply
+      #   map.person '/people/:id'
+      #
+      # If the user calls &lt;tt&gt;person_url(@person)&lt;/tt&gt;, we can simply
       # return a string like &quot;/people/#{@person.to_param}&quot; 
-      # rather than triggering the expensive logic in url_for
+      # rather than triggering the expensive logic in +url_for+.
       class PositionalArguments &lt; Optimiser
         def guard_condition
           number_of_arguments = route.segment_keys.size
@@ -77,7 +78,7 @@ module ActionController
 
           elements &lt;&lt; '#{request.relative_url_root if request.relative_url_root}'
 
-          # The last entry in route.segments appears to # *always* be a
+          # The last entry in &lt;tt&gt;route.segments&lt;/tt&gt; appears to *always* be a
           # 'divider segment' for '/' but we have assertions to ensure that
           # we don't include the trailing slashes, so skip them.
           (route.segments.size == 1 ? route.segments : route.segments[0..-2]).each do |segment|
@@ -106,7 +107,7 @@ module ActionController
           super.insert(-2, '?#{args.last.to_query}')
         end
 
-        # To avoid generating http://localhost/?host=foo.example.com we
+        # To avoid generating &quot;http://localhost/?host=foo.example.com&quot; we
         # can't use this optimisation on routes without any segments
         def applicable?
           super &amp;&amp; route.segment_keys.size &gt; 0 </diff>
      <filename>actionpack/lib/action_controller/routing/optimisations.rb</filename>
    </modified>
    <modified>
      <diff>@@ -139,8 +139,8 @@ module ActionController
       # those that were not used to generate a particular route. The extra
       # keys also do not include those recalled from the prior request, nor
       # do they include any keys that were implied in the route (like a
-      # :controller that is required, but not explicitly used in the text of
-      # the route.)
+      # &lt;tt&gt;:controller&lt;/tt&gt; that is required, but not explicitly used in the
+      # text of the route.)
       def extra_keys(hash, recall={})
         (hash || {}).keys.map { |k| k.to_sym } - (recall || {}).keys - significant_keys
       end</diff>
      <filename>actionpack/lib/action_controller/routing/route.rb</filename>
    </modified>
    <modified>
      <diff>@@ -14,27 +14,27 @@ require 'openssl'       # to generate the HMAC message digest
 # TamperedWithCookie is raised if the data integrity check fails.
 #
 # A message digest is included with the cookie to ensure data integrity:
-# a user cannot alter his user_id without knowing the secret key included in
+# a user cannot alter his +user_id+ without knowing the secret key included in
 # the hash. New apps are generated with a pregenerated secret in
 # config/environment.rb. Set your own for old apps you're upgrading.
 #
 # Session options:
-#   :secret   An application-wide key string or block returning a string
-#             called per generated digest. The block is called with the
-#             CGI::Session instance as an argument. It's important that the
-#             secret is not vulnerable to a dictionary attack. Therefore,
-#             you should choose a secret consisting of random numbers and
-#             letters and more than 30 characters.
 #
-#             Example:  :secret =&gt; '449fe2e7daee471bffae2fd8dc02313d'
-#                       :secret =&gt; Proc.new { User.current_user.secret_key }
+# * &lt;tt&gt;:secret&lt;/tt&gt;: An application-wide key string or block returning a string
+#   called per generated digest. The block is called with the CGI::Session
+#   instance as an argument. It's important that the secret is not vulnerable to
+#   a dictionary attack. Therefore, you should choose a secret consisting of
+#   random numbers and letters and more than 30 characters. Examples:
 #
-#   :digest   The message digest algorithm used to verify session integrity
-#             defaults to 'SHA1' but may be any digest provided by OpenSSL,
-#             such as 'MD5', 'RIPEMD160', 'SHA256', etc.
+#     :secret =&gt; '449fe2e7daee471bffae2fd8dc02313d'
+#     :secret =&gt; Proc.new { User.current_user.secret_key }
+#
+# * &lt;tt&gt;:digest&lt;/tt&gt;: The message digest algorithm used to verify session
+#   integrity defaults to 'SHA1' but may be any digest provided by OpenSSL,
+#   such as 'MD5', 'RIPEMD160', 'SHA256', etc.
 #
 # To generate a secret key for an existing application, run
-# `rake secret` and set the key in config/environment.rb
+# `rake secret` and set the key in config/environment.rb.
 #
 # Note that changing digest or secret invalidates all existing sessions!
 class CGI::Session::CookieStore</diff>
      <filename>actionpack/lib/action_controller/session/cookie_store.rb</filename>
    </modified>
    <modified>
      <diff>@@ -16,9 +16,11 @@ module ActionController #:nodoc:
     end
 
     module ClassMethods
-      # Set the session store to be used for keeping the session data between requests. By default, sessions are stored
-      # in browser cookies (:cookie_store), but you can also specify one of the other included stores
-      # (:active_record_store, :p_store, drb_store, :mem_cache_store, or :memory_store) or your own custom class.
+      # Set the session store to be used for keeping the session data between requests.
+      # By default, sessions are stored in browser cookies (&lt;tt&gt;:cookie_store&lt;/tt&gt;),
+      # but you can also specify one of the other included stores (&lt;tt&gt;:active_record_store&lt;/tt&gt;,
+      # &lt;tt&gt;:p_store&lt;/tt&gt;, &lt;tt&gt;:drb_store&lt;/tt&gt;, &lt;tt&gt;:mem_cache_store&lt;/tt&gt;, or
+      # &lt;tt&gt;:memory_store&lt;/tt&gt;) or your own custom class.
       def session_store=(store)
         ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:database_manager] =
           store.is_a?(Symbol) ? CGI::Session.const_get(store == :drb_store ? &quot;DRbStore&quot; : store.to_s.camelize) : store</diff>
      <filename>actionpack/lib/action_controller/session_management.rb</filename>
    </modified>
    <modified>
      <diff>@@ -17,24 +17,24 @@ module ActionController #:nodoc:
       # it feasible to send even large files.
       #
       # Be careful to sanitize the path parameter if it coming from a web
-      # page.  send_file(params[:path]) allows a malicious user to
+      # page. &lt;tt&gt;send_file(params[:path])&lt;/tt&gt; allows a malicious user to
       # download any file on your server.
       #
       # Options:
       # * &lt;tt&gt;:filename&lt;/tt&gt; - suggests a filename for the browser to use.
-      #   Defaults to File.basename(path).
+      #   Defaults to &lt;tt&gt;File.basename(path)&lt;/tt&gt;.
       # * &lt;tt&gt;:type&lt;/tt&gt; - specifies an HTTP content type.
       #   Defaults to 'application/octet-stream'.
       # * &lt;tt&gt;:disposition&lt;/tt&gt; - specifies whether the file will be shown inline or downloaded.
       #   Valid values are 'inline' and 'attachment' (default).
-      # * &lt;tt&gt;:stream&lt;/tt&gt; - whether to send the file to the user agent as it is read (true)
-      #   or to read the entire file before sending (false). Defaults to true.
+      # * &lt;tt&gt;:stream&lt;/tt&gt; - whether to send the file to the user agent as it is read (+true+)
+      #   or to read the entire file before sending (+false+). Defaults to +true+.
       # * &lt;tt&gt;:buffer_size&lt;/tt&gt; - specifies size (in bytes) of the buffer used to stream the file.
       #   Defaults to 4096.
       # * &lt;tt&gt;:status&lt;/tt&gt; - specifies the status code to send with the response. Defaults to '200 OK'.
-      # * &lt;tt&gt;:url_based_filename&lt;/tt&gt; - set to true if you want the browser guess the filename from
+      # * &lt;tt&gt;:url_based_filename&lt;/tt&gt; - set to +true+ if you want the browser guess the filename from
       #   the URL, which is necessary for i18n filenames on certain browsers
-      #   (setting :filename overrides this option).
+      #   (setting &lt;tt&gt;:filename&lt;/tt&gt; overrides this option).
       #
       # The default Content-Type and Content-Disposition headers are
       # set to download arbitrary binary files in as many browsers as
@@ -42,17 +42,20 @@ module ActionController #:nodoc:
       # a variety of quirks (especially when downloading over SSL).
       #
       # Simple download:
+      #
       #   send_file '/path/to.zip'
       #
       # Show a JPEG in the browser:
+      #
       #   send_file '/path/to.jpeg', :type =&gt; 'image/jpeg', :disposition =&gt; 'inline'
       #
       # Show a 404 page in the browser:
+      #
       #   send_file '/path/to/404.html', :type =&gt; 'text/html; charset=utf-8', :status =&gt; 404
       #
       # Read about the other Content-* HTTP headers if you'd like to
-      # provide the user with more information (such as Content-Description).
-      # http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11
+      # provide the user with more information (such as Content-Description) in
+      # http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11.
       #
       # Also be aware that the document may be cached by proxies and browsers.
       # The Pragma and Cache-Control headers declare how the file may be cached
@@ -95,7 +98,7 @@ module ActionController #:nodoc:
       # and specify whether to show data inline or download as an attachment.
       #
       # Options:
-      # * &lt;tt&gt;:filename&lt;/tt&gt; - Suggests a filename for the browser to use.
+      # * &lt;tt&gt;:filename&lt;/tt&gt; - suggests a filename for the browser to use.
       # * &lt;tt&gt;:type&lt;/tt&gt; - specifies an HTTP content type.
       #   Defaults to 'application/octet-stream'.
       # * &lt;tt&gt;:disposition&lt;/tt&gt; - specifies whether the file will be shown inline or downloaded.
@@ -103,12 +106,15 @@ module ActionController #:nodoc:
       # * &lt;tt&gt;:status&lt;/tt&gt; - specifies the status code to send with the response. Defaults to '200 OK'.
       #
       # Generic data download:
+      #
       #   send_data buffer
       #
       # Download a dynamically-generated tarball:
+      #
       #   send_data generate_tgz('dir'), :filename =&gt; 'dir.tgz'
       #
       # Display an image Active Record in the browser:
+      #
       #   send_data image.data, :type =&gt; image.content_type, :disposition =&gt; 'inline'
       #
       # See +send_file+ for more information on HTTP Content-* headers and caching.</diff>
      <filename>actionpack/lib/action_controller/streaming.rb</filename>
    </modified>
    <modified>
      <diff>@@ -155,12 +155,12 @@ module ActionController #:nodoc:
   # A refactoring of TestResponse to allow the same behavior to be applied
   # to the &quot;real&quot; CgiResponse class in integration tests.
   module TestResponseBehavior #:nodoc:
-    # the response code of the request
+    # The response code of the request
     def response_code
       headers['Status'][0,3].to_i rescue 0
     end
     
-    # returns a String to ensure compatibility with Net::HTTPResponse
+    # Returns a String to ensure compatibility with Net::HTTPResponse
     def code
       headers['Status'].to_s.split(' ')[0]
     end
@@ -169,34 +169,34 @@ module ActionController #:nodoc:
       headers['Status'].to_s.split(' ',2)[1]
     end
 
-    # was the response successful?
+    # Was the response successful?
     def success?
       response_code == 200
     end
 
-    # was the URL not found?
+    # Was the URL not found?
     def missing?
       response_code == 404
     end
 
-    # were we redirected?
+    # Were we redirected?
     def redirect?
       (300..399).include?(response_code)
     end
 
-    # was there a server-side error?
+    # Was there a server-side error?
     def error?
       (500..599).include?(response_code)
     end
 
     alias_method :server_error?, :error?
 
-    # returns the redirection location or nil
+    # Returns the redirection location or nil
     def redirect_url
       headers['Location']
     end
 
-    # does the redirect location match this regexp pattern?
+    # Does the redirect location match this regexp pattern?
     def redirect_url_match?( pattern )
       return false if redirect_url.nil?
       p = Regexp.new(pattern) if pattern.class == String
@@ -205,7 +205,7 @@ module ActionController #:nodoc:
       p.match(redirect_url) != nil
     end
 
-    # returns the template path of the file which was used to
+    # Returns the template path of the file which was used to
     # render this response (or nil) 
     def rendered_file(with_controller=false)
       unless template.first_render.nil?
@@ -217,50 +217,49 @@ module ActionController #:nodoc:
       end
     end
 
-    # was this template rendered by a file?
+    # Was this template rendered by a file?
     def rendered_with_file?
       !rendered_file.nil?
     end
 
-    # a shortcut to the flash (or an empty hash if no flash.. hey! that rhymes!)
+    # A shortcut to the flash. Returns an empyt hash if no session flash exists.
     def flash
       session['flash'] || {}
     end
 
-    # do we have a flash? 
+    # Do we have a flash?
     def has_flash?
       !session['flash'].empty?
     end
 
-    # do we have a flash that has contents?
+    # Do we have a flash that has contents?
     def has_flash_with_contents?
       !flash.empty?
     end
 
-    # does the specified flash object exist?
+    # Does the specified flash object exist?
     def has_flash_object?(name=nil)
       !flash[name].nil?
     end
 
-    # does the specified object exist in the session?
+    # Does the specified object exist in the session?
     def has_session_object?(name=nil)
       !session[name].nil?
     end
 
-    # a shortcut to the template.assigns
+    # A shortcut to the template.assigns
     def template_objects
       template.assigns || {}
     end
 
-    # does the specified template object exist? 
+    # Does the specified template object exist?
     def has_template_object?(name=nil)
       !template_objects[name].nil?      
     end
 
     # Returns the response cookies, converted to a Hash of (name =&gt; CGI::Cookie) pairs
-    # Example:
     # 
-    # assert_equal ['AuthorOfNewPage'], r.cookies['author'].value
+    #   assert_equal ['AuthorOfNewPage'], r.cookies['author'].value
     def cookies
       headers['cookie'].inject({}) { |hash, cookie| hash[cookie.name] = cookie; hash }
     end
@@ -465,10 +464,13 @@ module ActionController #:nodoc:
       return super
     end
     
-    # Shortcut for ActionController::TestUploadedFile.new(Test::Unit::TestCase.fixture_path + path, type). Example:
+    # Shortcut for &lt;tt&gt;ActionController::TestUploadedFile.new(Test::Unit::TestCase.fixture_path + path, type)&lt;/tt&gt;:
+    #
     #   post :change_avatar, :avatar =&gt; fixture_file_upload('/files/spongebob.png', 'image/png')
     #
-    # To upload binary files on Windows, pass :binary as the last parameter. This will not affect other platforms.
+    # To upload binary files on Windows, pass &lt;tt&gt;:binary&lt;/tt&gt; as the last parameter.
+    # This will not affect other platforms:
+    #
     #   post :change_avatar, :avatar =&gt; fixture_file_upload('/files/spongebob.png', 'image/png', :binary)
     def fixture_file_upload(path, mime_type = nil, binary = false)
       ActionController::TestUploadedFile.new(
@@ -483,17 +485,17 @@ module ActionController #:nodoc:
     # with a new RouteSet instance. 
     #
     # The new instance is yielded to the passed block. Typically the block
-    # will create some routes using map.draw { map.connect ... }:
+    # will create some routes using &lt;tt&gt;map.draw { map.connect ... }&lt;/tt&gt;:
     #
-    #  with_routing do |set|
-    #    set.draw do |map|
-    #      map.connect ':controller/:action/:id'
-    #        assert_equal(
-    #          ['/content/10/show', {}],
-    #          map.generate(:controller =&gt; 'content', :id =&gt; 10, :action =&gt; 'show')
-    #      end
-    #    end
-    #  end
+    #   with_routing do |set|
+    #     set.draw do |map|
+    #       map.connect ':controller/:action/:id'
+    #         assert_equal(
+    #           ['/content/10/show', {}],
+    #           map.generate(:controller =&gt; 'content', :id =&gt; 10, :action =&gt; 'show')
+    #       end
+    #     end
+    #   end
     #
     def with_routing
       real_routes = ActionController::Routing::Routes</diff>
      <filename>actionpack/lib/action_controller/test_process.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,8 +15,8 @@ module ActionController
   # In addition to providing +url_for+, named routes are also accessible after
   # including UrlWriter.
   module UrlWriter
-    # The default options for urls written by this writer. Typically a :host pair
-    # is provided.
+    # The default options for urls written by this writer. Typically a &lt;tt&gt;:host&lt;/tt&gt;
+    # pair is provided.
     mattr_accessor :default_url_options
     self.default_url_options = {}
 
@@ -29,16 +29,19 @@ module ActionController
     # Generate a url based on the options provided, default_url_options and the
     # routes defined in routes.rb.  The following options are supported:
     #
-    # * &lt;tt&gt;:only_path&lt;/tt&gt; If true, the relative url is returned. Defaults to false.
+    # * &lt;tt&gt;:only_path&lt;/tt&gt; If true, the relative url is returned. Defaults to +false+.
     # * &lt;tt&gt;:protocol&lt;/tt&gt; The protocol to connect to. Defaults to 'http'.
-    # * &lt;tt&gt;:host&lt;/tt&gt; Specifies the host the link should be targetted at. If &lt;tt&gt;:only_path&lt;/tt&gt; is false, this option must be
-    #   provided either explicitly, or via default_url_options.
+    # * &lt;tt&gt;:host&lt;/tt&gt; Specifies the host the link should be targetted at.
+    #   If &lt;tt&gt;:only_path&lt;/tt&gt; is false, this option must be
+    #   provided either explicitly, or via +default_url_options+.
     # * &lt;tt&gt;:port&lt;/tt&gt; Optionally specify the port to connect to.
     # * &lt;tt&gt;:anchor&lt;/tt&gt; An anchor name to be appended to the path.
-    # * &lt;tt&gt;:skip_relative_url_root&lt;/tt&gt; If true, the url is not constructed using the relative_url_root set in &lt;tt&gt;ActionController::AbstractRequest.relative_url_root&lt;/tt&gt;.
+    # * &lt;tt&gt;:skip_relative_url_root&lt;/tt&gt; If true, the url is not constructed using the
+    #   +relative_url_root+ set in ActionController::AbstractRequest.relative_url_root.
     # * &lt;tt&gt;:trailing_slash&lt;/tt&gt; If true, adds a trailing slash, as in &quot;/archive/2009/&quot;
     #
-    # Any other key(:controller, :action, etc...) given to &lt;tt&gt;url_for&lt;/tt&gt; is forwarded to the Routes module.
+    # Any other key (&lt;tt&gt;:controller&lt;/tt&gt;, &lt;tt&gt;:action&lt;/tt&gt;, etc.) given to
+    # +url_for+ is forwarded to the Routes module.
     #
     # Examples:
     #</diff>
      <filename>actionpack/lib/action_controller/url_rewriter.rb</filename>
    </modified>
    <modified>
      <diff>@@ -287,9 +287,10 @@ If you are rendering a subtemplate, you must now use controller-like partial syn
       template_path.split('/').last[0,1] != '_'
     end
 
-    # symbolized version of the :format parameter of the request, or :html by default.
+    # Returns a symbolized version of the &lt;tt&gt;:format&lt;/tt&gt; parameter of the request,
+    # or &lt;tt&gt;:html&lt;/tt&gt; by default.
     #
-    # EXCEPTION: If the :format parameter is not set, the Accept header will be examined for
+    # EXCEPTION: If the &lt;tt&gt;:format&lt;/tt&gt; parameter is not set, the Accept header will be examined for
     # whether it contains the JavaScript mime type as its first priority. If that's the case,
     # it will be used. This ensures that Ajax applications can use the same URL to support both
     # JavaScript and non-JavaScript users.</diff>
      <filename>actionpack/lib/action_view/base.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,47 +8,55 @@ module ActionView
   end
 
   module Helpers
-    # The Active Record Helper makes it easier to create forms for records kept in instance variables. The most far-reaching is the form
+    # The Active Record Helper makes it easier to create forms for records kept in instance variables. The most far-reaching is the +form+
     # method that creates a complete form for all the basic content types of the record (not associations or aggregations, though). This
     # is a great way of making the record quickly available for editing, but likely to prove lackluster for a complicated real-world form.
-    # In that case, it's better to use the input method and the specialized form methods in link:classes/ActionView/Helpers/FormHelper.html
+    # In that case, it's better to use the +input+ method and the specialized +form+ methods in link:classes/ActionView/Helpers/FormHelper.html
     module ActiveRecordHelper
-      # Returns a default input tag for the type of object returned by the method. For example, let's say you have a model
-      # that has an attribute +title+ of type VARCHAR column, and this instance holds &quot;Hello World&quot;:
-      #   input(&quot;post&quot;, &quot;title&quot;) =&gt;
-      #     &lt;input id=&quot;post_title&quot; name=&quot;post[title]&quot; size=&quot;30&quot; type=&quot;text&quot; value=&quot;Hello World&quot; /&gt;
+      # Returns a default input tag for the type of object returned by the method. For example, if &lt;tt&gt;@post&lt;/tt&gt;
+      # has an attribute +title+ mapped to a +VARCHAR+ column that holds &quot;Hello World&quot;:
+      #
+      #   input(&quot;post&quot;, &quot;title&quot;)
+      #   # =&gt; &lt;input id=&quot;post_title&quot; name=&quot;post[title]&quot; size=&quot;30&quot; type=&quot;text&quot; value=&quot;Hello World&quot; /&gt;
       def input(record_name, method, options = {})
         InstanceTag.new(record_name, method, self).to_tag(options)
       end
 
-      # Returns an entire form with all needed input tags for a specified Active Record object. For example, let's say you 
-      # have a table model &lt;tt&gt;Post&lt;/tt&gt; with attributes named &lt;tt&gt;title&lt;/tt&gt; of type &lt;tt&gt;VARCHAR&lt;/tt&gt; and &lt;tt&gt;body&lt;/tt&gt; of type &lt;tt&gt;TEXT&lt;/tt&gt;:
+      # Returns an entire form with all needed input tags for a specified Active Record object. For example, if &lt;tt&gt;@post&lt;/tt&gt;
+      # has attributes named +title+ of type +VARCHAR+ and +body+ of type +TEXT+ then
+      #
       #   form(&quot;post&quot;) 
-      # That line would yield a form like the following:
-      #     &lt;form action='/post/create' method='post'&gt;
-      #       &lt;p&gt;
-      #         &lt;label for=&quot;post_title&quot;&gt;Title&lt;/label&gt;&lt;br /&gt;
-      #         &lt;input id=&quot;post_title&quot; name=&quot;post[title]&quot; size=&quot;30&quot; type=&quot;text&quot; value=&quot;Hello World&quot; /&gt;
-      #       &lt;/p&gt;
-      #       &lt;p&gt;
-      #         &lt;label for=&quot;post_body&quot;&gt;Body&lt;/label&gt;&lt;br /&gt;
-      #         &lt;textarea cols=&quot;40&quot; id=&quot;post_body&quot; name=&quot;post[body]&quot; rows=&quot;20&quot;&gt;
-      #         &lt;/textarea&gt;
-      #       &lt;/p&gt;
-      #       &lt;input type='submit' value='Create' /&gt;
-      #     &lt;/form&gt;
+      #
+      # would yield a form like the following (modulus formatting):
+      #
+      #   &lt;form action='/posts/create' method='post'&gt;
+      #     &lt;p&gt;
+      #       &lt;label for=&quot;post_title&quot;&gt;Title&lt;/label&gt;&lt;br /&gt;
+      #       &lt;input id=&quot;post_title&quot; name=&quot;post[title]&quot; size=&quot;30&quot; type=&quot;text&quot; value=&quot;Hello World&quot; /&gt;
+      #     &lt;/p&gt;
+      #     &lt;p&gt;
+      #       &lt;label for=&quot;post_body&quot;&gt;Body&lt;/label&gt;&lt;br /&gt;
+      #       &lt;textarea cols=&quot;40&quot; id=&quot;post_body&quot; name=&quot;post[body]&quot; rows=&quot;20&quot;&gt;&lt;/textarea&gt;
+      #     &lt;/p&gt;
+      #     &lt;input name=&quot;commit&quot; type=&quot;submit&quot; value=&quot;Create&quot; /&gt;
+      #   &lt;/form&gt;
       #
       # It's possible to specialize the form builder by using a different action name and by supplying another
-      # block renderer. For example, let's say you have a model &lt;tt&gt;Entry&lt;/tt&gt; with an attribute &lt;tt&gt;message&lt;/tt&gt; of type &lt;tt&gt;VARCHAR&lt;/tt&gt;:
+      # block renderer. For example, if &lt;tt&gt;@entry&lt;/tt&gt; has an attribute +message+ of type +VARCHAR+ then
+      #
+      #   form(&quot;entry&quot;,
+      #     :action =&gt; &quot;sign&quot;,
+      #     :input_block =&gt; Proc.new { |record, column|
+      #       &quot;#{column.human_name}: #{input(record, column.name)}&lt;br /&gt;&quot;
+      #   })
       #
-      #   form(&quot;entry&quot;, :action =&gt; &quot;sign&quot;, :input_block =&gt;
-      #        Proc.new { |record, column| &quot;#{column.human_name}: #{input(record, column.name)}&lt;br /&gt;&quot; }) =&gt;
+      # would yield a form like the following (modulus formatting):
       #
-      #     &lt;form action='/post/sign' method='post'&gt;
-      #       Message:
-      #       &lt;input id=&quot;post_title&quot; name=&quot;post[title]&quot; size=&quot;30&quot; type=&quot;text&quot; value=&quot;Hello World&quot; /&gt;&lt;br /&gt;
-      #       &lt;input type='submit' value='Sign' /&gt;
-      #     &lt;/form&gt;
+      #   &lt;form action=&quot;/entries/sign&quot; method=&quot;post&quot;&gt;
+      #     Message:
+      #     &lt;input id=&quot;entry_message&quot; name=&quot;entry[message]&quot; size=&quot;30&quot; type=&quot;text&quot; /&gt;&lt;br /&gt;
+      #     &lt;input name=&quot;commit&quot; type=&quot;submit&quot; value=&quot;Sign&quot; /&gt;
+      #   &lt;/form&gt;
       #
       # It's also possible to add additional content to the form by giving it a block, such as:
       #
@@ -59,11 +67,11 @@ module ActionView
       #
       # The following options are available:
       #
-      # * &lt;tt&gt;action&lt;/tt&gt; - the action used when submitting the form (default: create if a new record, otherwise update)
-      # * &lt;tt&gt;input_block&lt;/tt&gt; - specialize the output using a different block, see above
-      # * &lt;tt&gt;method&lt;/tt&gt; - the method used when submitting the form (default: post)
-      # * &lt;tt&gt;multipart&lt;/tt&gt; - whether to change the enctype of the form to multipart/form-date, used when uploading a file (default: false)
-      # * &lt;tt&gt;submit_value&lt;/tt&gt; - the text of the submit button (default: Create if a new record, otherwise Update)
+      # * &lt;tt&gt;:action&lt;/tt&gt; - The action used when submitting the form (default: +create+ if a new record, otherwise +update+).
+      # * &lt;tt&gt;:input_block&lt;/tt&gt; - Specialize the output using a different block, see above.
+      # * &lt;tt&gt;:method&lt;/tt&gt; - The method used when submitting the form (default: +post+).
+      # * &lt;tt&gt;:multipart&lt;/tt&gt; - Whether to change the enctype of the form to &quot;multipart/form-data&quot;, used when uploading a file (default: +false+).
+      # * &lt;tt&gt;:submit_value&lt;/tt&gt; - The text of the submit button (default: &quot;Create&quot; if a new record, otherwise &quot;Update&quot;).
       def form(record_name, options = {})
         record = instance_variable_get(&quot;@#{record_name}&quot;)
 
@@ -84,17 +92,16 @@ module ActionView
       # Returns a string containing the error message attached to the +method+ on the +object+ if one exists.
       # This error message is wrapped in a &lt;tt&gt;DIV&lt;/tt&gt; tag, which can be extended to include a +prepend_text+ and/or +append_text+
       # (to properly explain the error), and a +css_class+ to style it accordingly. +object+ should either be the name of an instance variable or
-      # the actual object. As an example, let's say you have a model
-      # +post+ that has an error message on the +title+ attribute:
+      # the actual object. As an example, let's say you have a model &lt;tt&gt;@post&lt;/tt&gt; that has an error message on the +title+ attribute:
       #
-      #   &lt;%= error_message_on &quot;post&quot;, &quot;title&quot; %&gt; =&gt;
-      #     &lt;div class=&quot;formError&quot;&gt;can't be empty&lt;/div&gt;
+      #   &lt;%= error_message_on &quot;post&quot;, &quot;title&quot; %&gt;
+      #   # =&gt; &lt;div class=&quot;formError&quot;&gt;can't be empty&lt;/div&gt;
       #
-      #   &lt;%= error_message_on @post, &quot;title&quot; %&gt; =&gt;
-      #     &lt;div class=&quot;formError&quot;&gt;can't be empty&lt;/div&gt;
+      #   &lt;%= error_message_on @post, &quot;title&quot; %&gt;
+      #   # =&gt; &lt;div class=&quot;formError&quot;&gt;can't be empty&lt;/div&gt;
       #
-      #   &lt;%= error_message_on &quot;post&quot;, &quot;title&quot;, &quot;Title simply &quot;, &quot; (or it won't work).&quot;, &quot;inputError&quot; %&gt; =&gt;
-      #     &lt;div class=&quot;inputError&quot;&gt;Title simply can't be empty (or it won't work).&lt;/div&gt;
+      #   &lt;%= error_message_on &quot;post&quot;, &quot;title&quot;, &quot;Title simply &quot;, &quot; (or it won't work).&quot;, &quot;inputError&quot; %&gt;
+      #   # =&gt; &lt;div class=&quot;inputError&quot;&gt;Title simply can't be empty (or it won't work).&lt;/div&gt;
       def error_message_on(object, method, prepend_text = &quot;&quot;, append_text = &quot;&quot;, css_class = &quot;formError&quot;)
         if (obj = (object.respond_to?(:errors) ? object : instance_variable_get(&quot;@#{object}&quot;))) &amp;&amp;
           (errors = obj.errors.on(method))
@@ -110,30 +117,37 @@ module ActionView
       #
       # This &lt;tt&gt;DIV&lt;/tt&gt; can be tailored by the following options:
       #
-      # * &lt;tt&gt;header_tag&lt;/tt&gt; - Used for the header of the error div (default: h2)
-      # * &lt;tt&gt;id&lt;/tt&gt; - The id of the error div (default: errorExplanation)
-      # * &lt;tt&gt;class&lt;/tt&gt; - The class of the error div (default: errorExplanation)
-      # * &lt;tt&gt;object&lt;/tt&gt; - The object (or array of objects) for which to display errors, if you need to escape the instance variable convention
-      # * &lt;tt&gt;object_name&lt;/tt&gt; - The object name to use in the header, or any text that you prefer. If &lt;tt&gt;object_name&lt;/tt&gt; is not set, the name of the first object will be used.
-      # * &lt;tt&gt;header_message&lt;/tt&gt; - The message in the header of the error div.  Pass +nil+ or an empty string to avoid the header message altogether. (default: X errors prohibited this object from being saved)
-      # * &lt;tt&gt;message&lt;/tt&gt; - The explanation message after the header message and before the error list.  Pass +nil+ or an empty string to avoid the explanation message altogether.  (default: There were problems with the following fields:)
+      # * &lt;tt&gt;:header_tag&lt;/tt&gt; - Used for the header of the error div (default: &quot;h2&quot;).
+      # * &lt;tt&gt;:id&lt;/tt&gt; - The id of the error div (default: &quot;errorExplanation&quot;).
+      # * &lt;tt&gt;:class&lt;/tt&gt; - The class of the error div (default: &quot;errorExplanation&quot;).
+      # * &lt;tt&gt;:object&lt;/tt&gt; - The object (or array of objects) for which to display errors,
+      #   if you need to escape the instance variable convention.
+      # * &lt;tt&gt;:object_name&lt;/tt&gt; - The object name to use in the header, or any text that you prefer.
+      #   If &lt;tt&gt;:object_name&lt;/tt&gt; is not set, the name of the first object will be used.
+      # * &lt;tt&gt;:header_message&lt;/tt&gt; - The message in the header of the error div.  Pass +nil+
+      #   or an empty string to avoid the header message altogether. (Default: &quot;X errors
+      #   prohibited this object from being saved&quot;).
+      # * &lt;tt&gt;:message&lt;/tt&gt; - The explanation message after the header message and before
+      #   the error list.  Pass +nil+ or an empty string to avoid the explanation message
+      #   altogether. (Default: &quot;There were problems with the following fields:&quot;).
       #
-      # To specify the display for one object, you simply provide its name as a parameter.  For example, for the +User+ model:
+      # To specify the display for one object, you simply provide its name as a parameter.
+      # For example, for the &lt;tt&gt;@user&lt;/tt&gt; model:
       # 
       #   error_messages_for 'user'
       #
-      # To specify more than one object, you simply list them; optionally, you can add an extra +object_name+ parameter, which
-      # will be the name used in the header message.
+      # To specify more than one object, you simply list them; optionally, you can add an extra &lt;tt&gt;:object_name&lt;/tt&gt; parameter, which
+      # will be the name used in the header message:
       #
       #   error_messages_for 'user_common', 'user', :object_name =&gt; 'user'
       #
-      # If the objects cannot be located as instance variables, you can add an extra +object+ paremeter which gives the actual
-      # object (or array of objects to use)
+      # If the objects cannot be located as instance variables, you can add an extra &lt;tt&gt;:object&lt;/tt&gt; paremeter which gives the actual
+      # object (or array of objects to use):
       #
       #   error_messages_for 'user', :object =&gt; @question.user
       #
       # NOTE: This is a pre-packaged presentation of the errors with embedded strings and a certain HTML structure. If what
-      # you need is significantly different from the default presentation, it makes plenty of sense to access the object.errors
+      # you need is significantly different from the default presentation, it makes plenty of sense to access the &lt;tt&gt;object.errors&lt;/tt&gt;
       # instance yourself and set it up. View the source of this method to see how easy it is.
       def error_messages_for(*params)
         options = params.extract_options!.symbolize_keys</diff>
      <filename>actionpack/lib/action_view/helpers/active_record_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -164,7 +164,7 @@ module ActionView
       # current page or you can pass the full path relative to your document
       # root. To include the Prototype and Scriptaculous javascript libraries in
       # your application, pass &lt;tt&gt;:defaults&lt;/tt&gt; as the source. When using
-      # :defaults, if an &lt;tt&gt;application.js&lt;/tt&gt; file exists in your public
+      # &lt;tt&gt;:defaults&lt;/tt&gt;, if an application.js file exists in your public
       # javascripts directory, it will be included as well. You can modify the
       # html attributes of the script tag by passing a hash as the last argument.
       #
@@ -332,7 +332,7 @@ module ActionView
       #     &lt;link href=&quot;/stylesheets/random.styles&quot; media=&quot;screen&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
       #     &lt;link href=&quot;/css/stylish.css&quot; media=&quot;screen&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
       #
-      # You can also include all styles in the stylesheet directory using :all as the source:
+      # You can also include all styles in the stylesheet directory using &lt;tt&gt;:all&lt;/tt&gt; as the source:
       #
       #   stylesheet_link_tag :all # =&gt;
       #     &lt;link href=&quot;/stylesheets/style1.css&quot;  media=&quot;screen&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;</diff>
      <filename>actionpack/lib/action_view/helpers/asset_tag_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -104,17 +104,17 @@ module ActionView
 
       # Returns a set of select tags (one for year, month, and day) pre-selected for accessing a specified date-based attribute (identified by
       # +method+) on an object assigned to the template (identified by +object+). It's possible to tailor the selects through the +options+ hash,
-      # which accepts all the keys that each of the individual select builders do (like :use_month_numbers for select_month) as well as a range of
+      # which accepts all the keys that each of the individual select builders do (like &lt;tt&gt;:use_month_numbers&lt;/tt&gt; for select_month) as well as a range of
       # discard options. The discard options are &lt;tt&gt;:discard_year&lt;/tt&gt;, &lt;tt&gt;:discard_month&lt;/tt&gt; and &lt;tt&gt;:discard_day&lt;/tt&gt;. Set to true, they'll
       # drop the respective select. Discarding the month select will also automatically discard the day select. It's also possible to explicitly
       # set the order of the tags using the &lt;tt&gt;:order&lt;/tt&gt; option with an array of symbols &lt;tt&gt;:year&lt;/tt&gt;, &lt;tt&gt;:month&lt;/tt&gt; and &lt;tt&gt;:day&lt;/tt&gt; in
       # the desired order. Symbols may be omitted and the respective select is not included.
       #
-      # Pass the &lt;tt&gt;:default&lt;/tt&gt; option to set the default date. Use a Time object or a Hash of :year, :month, :day, :hour, :minute, and :second.
+      # Pass the &lt;tt&gt;:default&lt;/tt&gt; option to set the default date. Use a Time object or a Hash of &lt;tt&gt;:year&lt;/tt&gt;, &lt;tt&gt;:month&lt;/tt&gt;, &lt;tt&gt;:day&lt;/tt&gt;, &lt;tt&gt;:hour&lt;/tt&gt;, &lt;tt&gt;:minute&lt;/tt&gt;, and &lt;tt&gt;:second&lt;/tt&gt;.
       #
-      # Passing :disabled =&gt; true as part of the +options+ will make elements inaccessible for change.
+      # Passing &lt;tt&gt;:disabled =&gt; true&lt;/tt&gt; as part of the +options+ will make elements inaccessible for change.
       #
-      # If anything is passed in the html_options hash it will be applied to every select tag in the set.
+      # If anything is passed in the +html_options+ hash it will be applied to every select tag in the set.
       #
       # NOTE: Discarded selects will default to 1. So if no month select is available, January will be assumed.
       #</diff>
      <filename>actionpack/lib/action_view/helpers/date_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -108,7 +108,7 @@ module ActionView
       # Note: This also works for the methods in FormOptionHelper and DateHelper that are designed to work with an object as base,
       # like FormOptionHelper#collection_select and DateHelper#datetime_select.
       #
-      # HTML attributes for the form tag can be given as :html =&gt; {...}. For example:
+      # HTML attributes for the form tag can be given as &lt;tt&gt;:html =&gt; {...}&lt;/tt&gt;. For example:
       #
       #   &lt;% form_for :person, @person, :html =&gt; {:id =&gt; 'person_form'} do |f| %&gt;
       #     ...</diff>
      <filename>actionpack/lib/action_view/helpers/form_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -93,8 +93,8 @@ module ActionView
       # This allows the user to submit a form page more than once with the expected results of creating multiple records.
       # In addition, this allows a single partial to be used to generate form inputs for both edit and create forms.
       #
-      # By default, post.person_id is the selected option.  Specify :selected =&gt; value to use a different selection
-      # or :selected =&gt; nil to leave all options unselected.
+      # By default, &lt;tt&gt;post.person_id&lt;/tt&gt; is the selected option.  Specify &lt;tt&gt;:selected =&gt; value&lt;/tt&gt; to use a different selection
+      # or &lt;tt&gt;:selected =&gt; nil&lt;/tt&gt; to leave all options unselected.
       def select(object, method, choices, options = {}, html_options = {})
         InstanceTag.new(object, method, self, nil, options.delete(:object)).to_select_tag(choices, options, html_options)
       end</diff>
      <filename>actionpack/lib/action_view/helpers/form_options_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -341,8 +341,9 @@ module ActionView
       #   submit_tag nil, :class =&gt; &quot;form_submit&quot;
       #   # =&gt; &lt;input class=&quot;form_submit&quot; name=&quot;commit&quot; type=&quot;submit&quot; /&gt;
       #
-      #   submit_tag &quot;Edit&quot;, :disable_with =&gt; &quot;Editing...&quot;, :class =&gt; 'edit-button'
-      #   # =&gt; &lt;input class=&quot;edit-button&quot; disable_with=&quot;Editing...&quot; name=&quot;commit&quot; type=&quot;submit&quot; value=&quot;Edit&quot; /&gt;
+      #   submit_tag &quot;Edit&quot;, :disable_with =&gt; &quot;Editing...&quot;, :class =&gt; &quot;edit-button&quot;
+      #   # =&gt; &lt;input class=&quot;edit-button&quot; onclick=&quot;this.disabled=true;this.value='Editing...';this.form.submit();&quot;
+      #   #    name=&quot;commit&quot; type=&quot;submit&quot; value=&quot;Edit&quot; /&gt;
       def submit_tag(value = &quot;Save changes&quot;, options = {})
         options.stringify_keys!
         </diff>
      <filename>actionpack/lib/action_view/helpers/form_tag_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -255,10 +255,10 @@ module ActionView
         link_to_function(name, remote_function(options), html_options || options.delete(:html))
       end
 
-      # Periodically calls the specified url (&lt;tt&gt;options[:url]&lt;/tt&gt;) every 
+      # Periodically calls the specified url (&lt;tt&gt;options[:url]&lt;/tt&gt;) every
       # &lt;tt&gt;options[:frequency]&lt;/tt&gt; seconds (default is 10). Usually used to
-      # update a specified div (&lt;tt&gt;options[:update]&lt;/tt&gt;) with the results 
-      # of the remote call. The options for specifying the target with :url 
+      # update a specified div (&lt;tt&gt;options[:update]&lt;/tt&gt;) with the results
+      # of the remote call. The options for specifying the target with &lt;tt&gt;:url&lt;/tt&gt;
       # and defining callbacks is the same as link_to_remote.
       # Examples:
       #  # Call get_averages and put its results in 'avg' every 10 seconds
@@ -291,11 +291,11 @@ module ActionView
       # though it's using JavaScript to serialize the form elements, the form
       # submission will work just like a regular submission as viewed by the
       # receiving side (all elements available in &lt;tt&gt;params&lt;/tt&gt;). The options for 
-      # specifying the target with :url and defining callbacks is the same as
-      # link_to_remote.
+      # specifying the target with &lt;tt&gt;:url&lt;/tt&gt; and defining callbacks is the same as
+      # +link_to_remote+.
       #
       # A &quot;fall-through&quot; target for browsers that doesn't do JavaScript can be
-      # specified with the :action/:method options on :html.
+      # specified with the &lt;tt&gt;:action&lt;/tt&gt;/&lt;tt&gt;:method&lt;/tt&gt; options on &lt;tt&gt;:html&lt;/tt&gt;.
       #
       # Example:
       #   # Generates:
@@ -304,11 +304,11 @@ module ActionView
       #   form_remote_tag :html =&gt; { :action =&gt; 
       #     url_for(:controller =&gt; &quot;some&quot;, :action =&gt; &quot;place&quot;) }
       #
-      # The Hash passed to the :html key is equivalent to the options (2nd) 
+      # The Hash passed to the &lt;tt&gt;:html&lt;/tt&gt; key is equivalent to the options (2nd)
       # argument in the FormTagHelper.form_tag method.
       #
       # By default the fall-through action is the same as the one specified in 
-      # the :url (and the default method is :post).
+      # the &lt;tt&gt;:url&lt;/tt&gt; (and the default method is &lt;tt&gt;:post&lt;/tt&gt;).
       #
       # form_remote_tag also takes a block, like form_tag:
       #   # Generates:
@@ -422,8 +422,8 @@ module ActionView
       end
       
       # Returns '&lt;tt&gt;eval(request.responseText)&lt;/tt&gt;' which is the JavaScript function
-      # that form_remote_tag can call in :complete to evaluate a multiple
-      # update return document using update_element_function calls.
+      # that +form_remote_tag+ can call in &lt;tt&gt;:complete&lt;/tt&gt; to evaluate a multiple
+      # update return document using +update_element_function+ calls.
       def evaluate_remote_response
         &quot;eval(request.responseText)&quot;
       end</diff>
      <filename>actionpack/lib/action_view/helpers/prototype_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,7 +10,7 @@ module ActionView
         base.extend(ClassMethods)
       end
       
-      # This #sanitize helper will html encode all tags and strip all attributes that aren't specifically allowed.  
+      # This +sanitize+ helper will html encode all tags and strip all attributes that aren't specifically allowed.
       # It also strips href/src tags with invalid protocols, like javascript: especially.  It does its best to counter any
       # tricks that hackers may use, like throwing in unicode/ascii/hex values to get past the javascript: filters.  Check out
       # the extensive test suite.
@@ -18,7 +18,7 @@ module ActionView
       #   &lt;%= sanitize @article.body %&gt;
       # 
       # You can add or remove tags/attributes if you want to customize it a bit.  See ActionView::Base for full docs on the
-      # available options.  You can add tags/attributes for single uses of #sanitize by passing either the :attributes or :tags options:
+      # available options.  You can add tags/attributes for single uses of +sanitize+ by passing either the &lt;tt&gt;:attributes&lt;/tt&gt; or &lt;tt&gt;:tags&lt;/tt&gt; options:
       #
       # Normal Use
       #</diff>
      <filename>actionpack/lib/action_view/helpers/sanitize_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -35,8 +35,8 @@ module ActionView
       # This would fade the element that was dropped on the drop receiving 
       # element.
       #
-      # For toggling visual effects, you can use :toggle_appear, :toggle_slide, and
-      # :toggle_blind which will alternate between appear/fade, slidedown/slideup, and
+      # For toggling visual effects, you can use &lt;tt&gt;:toggle_appear&lt;/tt&gt;, &lt;tt&gt;:toggle_slide&lt;/tt&gt;, and
+      # &lt;tt&gt;:toggle_blind&lt;/tt&gt; which will alternate between appear/fade, slidedown/slideup, and
       # blinddown/blindup respectively.
       #
       # You can change the behaviour with various options, see</diff>
      <filename>actionpack/lib/action_view/helpers/scriptaculous_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -16,7 +16,7 @@ module ActionView
       # instead of the fully qualified URL like http://example.com/controller/action.
       #
       # When called from a view, url_for returns an HTML escaped url. If you
-      # need an unescaped url, pass :escape =&gt; false in the +options+.
+      # need an unescaped url, pass &lt;tt&gt;:escape =&gt; false&lt;/tt&gt; in the +options+.
       #
       # ==== Options
       # * &lt;tt&gt;:anchor&lt;/tt&gt; -- specifies the anchor name to be appended to the path.
@@ -25,8 +25,8 @@ module ActionView
       #   is currently not recommended since it breaks caching.
       # * &lt;tt&gt;:host&lt;/tt&gt; -- overrides the default (current) host if provided
       # * &lt;tt&gt;:protocol&lt;/tt&gt; -- overrides the default (current) protocol if provided
-      # * &lt;tt&gt;:user&lt;/tt&gt; -- Inline HTTP authentication (only plucked out if :password is also present)
-      # * &lt;tt&gt;:password&lt;/tt&gt; -- Inline HTTP authentication (only plucked out if :user is also present)
+      # * &lt;tt&gt;:user&lt;/tt&gt; -- Inline HTTP authentication (only plucked out if &lt;tt&gt;:password&lt;/tt&gt; is also present)
+      # * &lt;tt&gt;:password&lt;/tt&gt; -- Inline HTTP authentication (only plucked out if &lt;tt&gt;:user&lt;/tt&gt; is also present)
       # * &lt;tt&gt;:escape&lt;/tt&gt; -- Determines whether the returned URL will be HTML escaped or not (&lt;tt&gt;true&lt;/tt&gt; by default)
       #
       # ==== Relying on named routes
@@ -102,21 +102,21 @@ module ActionView
       #   create an HTML form and immediately submit the form for processing using
       #   the HTTP verb specified. Useful for having links perform a POST operation
       #   in dangerous actions like deleting a record (which search bots can follow
-      #   while spidering your site). Supported verbs are :post, :delete and :put.
+      #   while spidering your site). Supported verbs are &lt;tt&gt;:post&lt;/tt&gt;, &lt;tt&gt;:delete&lt;/tt&gt; and &lt;tt&gt;:put&lt;/tt&gt;.
       #   Note that if the user has JavaScript disabled, the request will fall back
       #   to using GET. If you are relying on the POST behavior, you should check
       #   for it in your controller's action by using the request object's methods
-      #   for post?, delete? or put?.
+      #   for &lt;tt&gt;post?&lt;/tt&gt;, &lt;tt&gt;delete?&lt;/tt&gt; or &lt;tt&gt;put?&lt;/tt&gt;.
       # * The +html_options+ will accept a hash of html attributes for the link tag.
       #
       # Note that if the user has JavaScript disabled, the request will fall back
-      # to using GET. If :href=&gt;'#' is used and the user has JavaScript disabled
+      # to using GET. If &lt;tt&gt;:href =&gt; '#'&lt;/tt&gt; is used and the user has JavaScript disabled
       # clicking the link will have no effect. If you are relying on the POST 
       # behavior, your should check for it in your controller's action by using the 
-      # request object's methods for post?, delete? or put?. 
+      # request object's methods for &lt;tt&gt;post?&lt;/tt&gt;, &lt;tt&gt;delete?&lt;/tt&gt; or &lt;tt&gt;put?&lt;/tt&gt;.
       #
       # You can mix and match the +html_options+ with the exception of
-      # :popup and :method which will raise an ActionView::ActionViewError
+      # &lt;tt&gt;:popup&lt;/tt&gt; and &lt;tt&gt;:method&lt;/tt&gt; which will raise an ActionView::ActionViewError
       # exception.
       #
       # ==== Examples</diff>
      <filename>actionpack/lib/action_view/helpers/url_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -100,7 +100,7 @@ module ActionView
   #     Title: &lt;%= chief.name %&gt;
   #   &lt;/div&gt;
   #
-  # As you can see, the :locals hash is shared between both the partial and its layout.
+  # As you can see, the &lt;tt&gt;:locals&lt;/tt&gt; hash is shared between both the partial and its layout.
   module Partials
     private
       def render_partial(partial_path, object_assigns = nil, local_assigns = {}) #:nodoc:</diff>
      <filename>actionpack/lib/action_view/partials.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,7 +10,7 @@ module ActiveModel
       DEFAULT_VALIDATION_OPTIONS = { :on =&gt; :save, :allow_nil =&gt; false, :allow_blank =&gt; false, :message =&gt; nil }.freeze
 
       # Adds a validation method or block to the class. This is useful when
-      # overriding the #validate instance method becomes too unwieldly and
+      # overriding the +validate+ instance method becomes too unwieldly and
       # you're looking for more descriptive declaration of your validations.
       #
       # This can be done with a symbol pointing to a method:
@@ -35,8 +35,8 @@ module ActiveModel
       #     end
       #   end
       #
-      # This usage applies to #validate_on_create and #validate_on_update as well.
-
+      # This usage applies to +validate_on_create+ and +validate_on_update as well+.
+      #
       # Validates each attribute against a block.
       #
       #   class Person &lt; ActiveRecord::Base
@@ -46,14 +46,14 @@ module ActiveModel
       #   end
       #
       # Options:
-      # * &lt;tt&gt;on&lt;/tt&gt; - Specifies when this validation is active (default is :save, other options :create, :update)
-      # * &lt;tt&gt;allow_nil&lt;/tt&gt; - Skip validation if attribute is nil.
-      # * &lt;tt&gt;allow_blank&lt;/tt&gt; - Skip validation if attribute is blank.
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:on&lt;/tt&gt; - Specifies when this validation is active (default is &lt;tt&gt;:save&lt;/tt&gt;, other options &lt;tt&gt;:create&lt;/tt&gt;, &lt;tt&gt;:update&lt;/tt&gt;)
+      # * &lt;tt&gt;:allow_nil&lt;/tt&gt; - Skip validation if attribute is +nil+.
+      # * &lt;tt&gt;:allow_blank&lt;/tt&gt; - Skip validation if attribute is blank.
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
       def validates_each(*attrs)
         options = attrs.extract_options!.symbolize_keys</diff>
      <filename>activemodel/lib/active_model/validations.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,22 +8,22 @@ module ActiveModel
       #     validates_acceptance_of :eula, :message =&gt; &quot;must be abided&quot;
       #   end
       #
-      # If the database column does not exist, the terms_of_service attribute is entirely virtual. This check is
-      # performed only if terms_of_service is not nil and by default on save.
+      # If the database column does not exist, the &lt;tt&gt;:terms_of_service&lt;/tt&gt; attribute is entirely virtual. This check is
+      # performed only if &lt;tt&gt;:terms_of_service&lt;/tt&gt; is not +nil+ and by default on save.
       #
       # Configuration options:
-      # * &lt;tt&gt;message&lt;/tt&gt; - A custom error message (default is: &quot;must be accepted&quot;)
-      # * &lt;tt&gt;on&lt;/tt&gt; - Specifies when this validation is active (default is :save, other options :create, :update)
-      # * &lt;tt&gt;allow_nil&lt;/tt&gt; - Skip validation if attribute is nil. (default is true)
-      # * &lt;tt&gt;accept&lt;/tt&gt; - Specifies value that is considered accepted.  The default value is a string &quot;1&quot;, which
-      #   makes it easy to relate to an HTML checkbox. This should be set to 'true' if you are validating a database
-      #   column, since the attribute is typecast from &quot;1&quot; to &lt;tt&gt;true&lt;/tt&gt; before validation.
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:message&lt;/tt&gt; - A custom error message (default is: &quot;must be accepted&quot;)
+      # * &lt;tt&gt;:on&lt;/tt&gt; - Specifies when this validation is active (default is &lt;tt&gt;:save&lt;/tt&gt;, other options &lt;tt&gt;:create&lt;/tt&gt;, &lt;tt&gt;:update&lt;/tt&gt;)
+      # * &lt;tt&gt;:allow_nil&lt;/tt&gt; - Skip validation if attribute is +nil+. (default is +true+)
+      # * &lt;tt&gt;:accept&lt;/tt&gt; - Specifies value that is considered accepted.  The default value is a string &quot;1&quot;, which
+      #   makes it easy to relate to an HTML checkbox. This should be set to +true+ if you are validating a database
+      #   column, since the attribute is typecasted from &quot;1&quot; to +true+ before validation.
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
+      #   method, proc or string should return or evaluate to a true or false value.
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
-      #   method, proc or string should return or evaluate to a true or false value.      
       def validates_acceptance_of(*attr_names)
         configuration = { :message =&gt; ActiveRecord::Errors.default_error_messages[:accepted], :on =&gt; :save, :allow_nil =&gt; true, :accept =&gt; &quot;1&quot; }
         configuration.update(attr_names.extract_options!)</diff>
      <filename>activemodel/lib/active_model/validations/acceptance.rb</filename>
    </modified>
    <modified>
      <diff>@@ -21,16 +21,16 @@ module ActiveModel
       # ...this would specify a circular dependency and cause infinite recursion.
       #
       # NOTE: This validation will not fail if the association hasn't been assigned. If you want to ensure that the association
-      # is both present and guaranteed to be valid, you also need to use validates_presence_of.
+      # is both present and guaranteed to be valid, you also need to use +validates_presence_of+.
       #
       # Configuration options:
-      # * &lt;tt&gt;message&lt;/tt&gt; - A custom error message (default is: &quot;is invalid&quot;)
-      # * &lt;tt&gt;on&lt;/tt&gt; Specifies when this validation is active (default is :save, other options :create, :update)
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:message&lt;/tt&gt; - A custom error message (default is: &quot;is invalid&quot;)
+      # * &lt;tt&gt;:on&lt;/tt&gt; Specifies when this validation is active (default is &lt;tt&gt;:save&lt;/tt&gt;, other options &lt;tt&gt;:create&lt;/tt&gt;, &lt;tt&gt;:update&lt;/tt&gt;)
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
       def validates_associated(*attr_names)
         configuration = { :message =&gt; ActiveRecord::Errors.default_error_messages[:invalid], :on =&gt; :save }</diff>
      <filename>activemodel/lib/active_model/validations/associated.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,20 +15,20 @@ module ActiveModel
       #
       # The added +password_confirmation+ attribute is virtual; it exists only as an in-memory attribute for validating the password.
       # To achieve this, the validation adds accessors to the model for the confirmation attribute. NOTE: This check is performed
-      # only if +password_confirmation+ is not nil, and by default only on save. To require confirmation, make sure to add a presence
+      # only if +password_confirmation+ is not +nil+, and by default only on save. To require confirmation, make sure to add a presence
       # check for the confirmation attribute:
       #
       #   validates_presence_of :password_confirmation, :if =&gt; :password_changed?
       #
       # Configuration options:
-      # * &lt;tt&gt;message&lt;/tt&gt; - A custom error message (default is: &quot;doesn't match confirmation&quot;)
-      # * &lt;tt&gt;on&lt;/tt&gt; - Specifies when this validation is active (default is :save, other options :create, :update)
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:message&lt;/tt&gt; - A custom error message (default is: &quot;doesn't match confirmation&quot;)
+      # * &lt;tt&gt;:on&lt;/tt&gt; - Specifies when this validation is active (default is &lt;tt&gt;:save&lt;/tt&gt;, other options &lt;tt&gt;:create&lt;/tt&gt;, &lt;tt&gt;:update&lt;/tt&gt;)
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
+      #   method, proc or string should return or evaluate to a true or false value.
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
-      #   method, proc or string should return or evaluate to a true or false value.      
       def validates_confirmation_of(*attr_names)
         configuration = { :message =&gt; ActiveRecord::Errors.default_error_messages[:confirmation], :on =&gt; :save }
         configuration.update(attr_names.extract_options!)</diff>
      <filename>activemodel/lib/active_model/validations/confirmation.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,15 +10,15 @@ module ActiveModel
       #   end
       #
       # Configuration options:
-      # * &lt;tt&gt;in&lt;/tt&gt; - An enumerable object of items that the value shouldn't be part of
-      # * &lt;tt&gt;message&lt;/tt&gt; - Specifies a custom error message (default is: &quot;is reserved&quot;)
-      # * &lt;tt&gt;allow_nil&lt;/tt&gt; - If set to true, skips this validation if the attribute is null (default is: false)
-      # * &lt;tt&gt;allow_blank&lt;/tt&gt; - If set to true, skips this validation if the attribute is blank (default is: false)
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:in&lt;/tt&gt; - An enumerable object of items that the value shouldn't be part of
+      # * &lt;tt&gt;:message&lt;/tt&gt; - Specifies a custom error message (default is: &quot;is reserved&quot;)
+      # * &lt;tt&gt;:allow_nil&lt;/tt&gt; - If set to +true+, skips this validation if the attribute is +nil+ (default is: +false+)
+      # * &lt;tt&gt;:allow_blank&lt;/tt&gt; - If set to +true+, skips this validation if the attribute is blank (default is: +false+)
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
       def validates_exclusion_of(*attr_names)
         configuration = { :message =&gt; ActiveRecord::Errors.default_error_messages[:exclusion], :on =&gt; :save }</diff>
      <filename>activemodel/lib/active_model/validations/exclusion.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,21 +8,21 @@ module ActiveModel
       #     validates_format_of :email, :with =&gt; /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i, :on =&gt; :create
       #   end
       #
-      # Note: use \A and \Z to match the start and end of the string, ^ and $ match the start/end of a line.
+      # Note: use &lt;tt&gt;\A&lt;/tt&gt; and &lt;tt&gt;\Z&lt;/tt&gt; to match the start and end of the string, &lt;tt&gt;^&lt;/tt&gt; and &lt;tt&gt;$&lt;/tt&gt; match the start/end of a line.
       #
       # A regular expression must be provided or else an exception will be raised.
       #
       # Configuration options:
-      # * &lt;tt&gt;message&lt;/tt&gt; - A custom error message (default is: &quot;is invalid&quot;)
-      # * &lt;tt&gt;allow_nil&lt;/tt&gt; - If set to true, skips this validation if the attribute is null (default is: false)
-      # * &lt;tt&gt;allow_blank&lt;/tt&gt; - If set to true, skips this validation if the attribute is blank (default is: false)
-      # * &lt;tt&gt;with&lt;/tt&gt; - The regular expression used to validate the format with (note: must be supplied!)
-      # * &lt;tt&gt;on&lt;/tt&gt; Specifies when this validation is active (default is :save, other options :create, :update)
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:message&lt;/tt&gt; - A custom error message (default is: &quot;is invalid&quot;)
+      # * &lt;tt&gt;:allow_nil&lt;/tt&gt; - If set to +true+, skips this validation if the attribute is +nil+ (default is: +false+)
+      # * &lt;tt&gt;:allow_blank&lt;/tt&gt; - If set to +true+, skips this validation if the attribute is blank (default is: +false+)
+      # * &lt;tt&gt;:with&lt;/tt&gt; - The regular expression used to validate the format with (note: must be supplied!)
+      # * &lt;tt&gt;:on&lt;/tt&gt; - Specifies when this validation is active (default is &lt;tt&gt;:save&lt;/tt&gt;, other options &lt;tt&gt;:create&lt;/tt&gt;, &lt;tt&gt;:update&lt;/tt&gt;)
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
       def validates_format_of(*attr_names)
         configuration = { :message =&gt; ActiveRecord::Errors.default_error_messages[:invalid], :on =&gt; :save, :with =&gt; nil }</diff>
      <filename>activemodel/lib/active_model/validations/format.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,15 +10,15 @@ module ActiveModel
       #   end
       #
       # Configuration options:
-      # * &lt;tt&gt;in&lt;/tt&gt; - An enumerable object of available items
-      # * &lt;tt&gt;message&lt;/tt&gt; - Specifies a custom error message (default is: &quot;is not included in the list&quot;)
-      # * &lt;tt&gt;allow_nil&lt;/tt&gt; - If set to true, skips this validation if the attribute is null (default is: false)
-      # * &lt;tt&gt;allow_blank&lt;/tt&gt; - If set to true, skips this validation if the attribute is blank (default is: false)
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:in&lt;/tt&gt; - An enumerable object of available items
+      # * &lt;tt&gt;:message&lt;/tt&gt; - Specifies a custom error message (default is: &quot;is not included in the list&quot;)
+      # * &lt;tt&gt;:allow_nil&lt;/tt&gt; - If set to +true+, skips this validation if the attribute is null (default is: +false+)
+      # * &lt;tt&gt;:allow_blank&lt;/tt&gt; - If set to +true+, skips this validation if the attribute is blank (default is: +false+)
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
       def validates_inclusion_of(*attr_names)
         configuration = { :message =&gt; ActiveRecord::Errors.default_error_messages[:inclusion], :on =&gt; :save }</diff>
      <filename>activemodel/lib/active_model/validations/inclusion.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,35 +6,34 @@ module ActiveModel
       # Validates that the specified attribute matches the length restrictions supplied. Only one option can be used at a time:
       #
       #   class Person &lt; ActiveRecord::Base
-      #     validates_length_of :first_name, :maximum=&gt;30
-      #     validates_length_of :last_name, :maximum=&gt;30, :message=&gt;&quot;less than %d if you don't mind&quot;
+      #     validates_length_of :first_name, :maximum =&gt; 30
+      #     validates_length_of :last_name, :maximum =&gt; 30, :message =&gt; &quot;less than %d if you don't mind&quot;
       #     validates_length_of :fax, :in =&gt; 7..32, :allow_nil =&gt; true
       #     validates_length_of :phone, :in =&gt; 7..32, :allow_blank =&gt; true
       #     validates_length_of :user_name, :within =&gt; 6..20, :too_long =&gt; &quot;pick a shorter name&quot;, :too_short =&gt; &quot;pick a longer name&quot;
-      #     validates_length_of :fav_bra_size, :minimum=&gt;1, :too_short=&gt;&quot;please enter at least %d character&quot;
-      #     validates_length_of :smurf_leader, :is=&gt;4, :message=&gt;&quot;papa is spelled with %d characters... don't play me.&quot;
+      #     validates_length_of :fav_bra_size, :minimum =&gt; 1, :too_short =&gt; &quot;please enter at least %d character&quot;
+      #     validates_length_of :smurf_leader, :is =&gt; 4, :message =&gt; &quot;papa is spelled with %d characters... don't play me.&quot;
       #   end
       #
       # Configuration options:
-      # * &lt;tt&gt;minimum&lt;/tt&gt; - The minimum size of the attribute
-      # * &lt;tt&gt;maximum&lt;/tt&gt; - The maximum size of the attribute
-      # * &lt;tt&gt;is&lt;/tt&gt; - The exact size of the attribute
-      # * &lt;tt&gt;within&lt;/tt&gt; - A range specifying the minimum and maximum size of the attribute
-      # * &lt;tt&gt;in&lt;/tt&gt; - A synonym(or alias) for :within
-      # * &lt;tt&gt;allow_nil&lt;/tt&gt; - Attribute may be nil; skip validation.
-      # * &lt;tt&gt;allow_blank&lt;/tt&gt; - Attribute may be blank; skip validation.
-      #
-      # * &lt;tt&gt;too_long&lt;/tt&gt; - The error message if the attribute goes over the maximum (default is: &quot;is too long (maximum is %d characters)&quot;)
-      # * &lt;tt&gt;too_short&lt;/tt&gt; - The error message if the attribute goes under the minimum (default is: &quot;is too short (min is %d characters)&quot;)
-      # * &lt;tt&gt;wrong_length&lt;/tt&gt; - The error message if using the :is method and the attribute is the wrong size (default is: &quot;is the wrong length (should be %d characters)&quot;)
-      # * &lt;tt&gt;message&lt;/tt&gt; - The error message to use for a :minimum, :maximum, or :is violation.  An alias of the appropriate too_long/too_short/wrong_length message
-      # * &lt;tt&gt;on&lt;/tt&gt; - Specifies when this validation is active (default is :save, other options :create, :update)
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:minimum&lt;/tt&gt; - The minimum size of the attribute
+      # * &lt;tt&gt;:maximum&lt;/tt&gt; - The maximum size of the attribute
+      # * &lt;tt&gt;:is&lt;/tt&gt; - The exact size of the attribute
+      # * &lt;tt&gt;:within&lt;/tt&gt; - A range specifying the minimum and maximum size of the attribute
+      # * &lt;tt&gt;:in&lt;/tt&gt; - A synonym (or alias) for &lt;tt&gt;:within&lt;/tt&gt;
+      # * &lt;tt&gt;:allow_nil&lt;/tt&gt; - Attribute may be +nil+; skip validation.
+      # * &lt;tt&gt;:allow_blank&lt;/tt&gt; - Attribute may be blank; skip validation.
+      # * &lt;tt&gt;:too_long&lt;/tt&gt; - The error message if the attribute goes over the maximum (default is: &quot;is too long (maximum is %d characters)&quot;)
+      # * &lt;tt&gt;:too_short&lt;/tt&gt; - The error message if the attribute goes under the minimum (default is: &quot;is too short (min is %d characters)&quot;)
+      # * &lt;tt&gt;:wrong_length&lt;/tt&gt; - The error message if using the &lt;tt&gt;:is&lt;/tt&gt; method and the attribute is the wrong size (default is: &quot;is the wrong length (should be %d characters)&quot;)
+      # * &lt;tt&gt;:message&lt;/tt&gt; - The error message to use for a &lt;tt&gt;:minimum&lt;/tt&gt;, &lt;tt&gt;:maximum&lt;/tt&gt;, or &lt;tt&gt;:is&lt;/tt&gt; violation.  An alias of the appropriate &lt;tt&gt;:too_long&lt;/tt&gt;/&lt;tt&gt;too_short&lt;/tt&gt;/&lt;tt&gt;wrong_length&lt;/tt&gt; message
+      # * &lt;tt&gt;:on&lt;/tt&gt; - Specifies when this validation is active (default is &lt;tt&gt;:save&lt;/tt&gt;, other options &lt;tt&gt;:create&lt;/tt&gt;, &lt;tt&gt;:update&lt;/tt&gt;)
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
+      #   method, proc or string should return or evaluate to a true or false value.
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
-      #   method, proc or string should return or evaluate to a true or false value.      
       def validates_length_of(*attrs)
         # Merge given options with defaults.
         options = {</diff>
      <filename>activemodel/lib/active_model/validations/length.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,29 +8,29 @@ module ActiveModel
 
       # Validates whether the value of the specified attribute is numeric by trying to convert it to
       # a float with Kernel.Float (if &lt;tt&gt;integer&lt;/tt&gt; is false) or applying it to the regular expression
-      # &lt;tt&gt;/\A[\+\-]?\d+\Z/&lt;/tt&gt; (if &lt;tt&gt;integer&lt;/tt&gt; is set to true).
+      # &lt;tt&gt;/\A[\+\-]?\d+\Z/&lt;/tt&gt; (if &lt;tt&gt;integer&lt;/tt&gt; is true).
       #
       #   class Person &lt; ActiveRecord::Base
       #     validates_numericality_of :value, :on =&gt; :create
       #   end
       #
       # Configuration options:
-      # * &lt;tt&gt;message&lt;/tt&gt; - A custom error message (default is: &quot;is not a number&quot;)
-      # * &lt;tt&gt;on&lt;/tt&gt; Specifies when this validation is active (default is :save, other options :create, :update)
-      # * &lt;tt&gt;only_integer&lt;/tt&gt; Specifies whether the value has to be an integer, e.g. an integral value (default is false)
-      # * &lt;tt&gt;allow_nil&lt;/tt&gt; Skip validation if attribute is nil (default is false). Notice that for fixnum and float columns empty strings are converted to nil
-      # * &lt;tt&gt;greater_than&lt;/tt&gt; Specifies the value must be greater than the supplied value
-      # * &lt;tt&gt;greater_than_or_equal_to&lt;/tt&gt; Specifies the value must be greater than or equal the supplied value
-      # * &lt;tt&gt;equal_to&lt;/tt&gt; Specifies the value must be equal to the supplied value
-      # * &lt;tt&gt;less_than&lt;/tt&gt; Specifies the value must be less than the supplied value
-      # * &lt;tt&gt;less_than_or_equal_to&lt;/tt&gt; Specifies the value must be less than or equal the supplied value
-      # * &lt;tt&gt;odd&lt;/tt&gt; Specifies the value must be an odd number
-      # * &lt;tt&gt;even&lt;/tt&gt; Specifies the value must be an even number
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:message&lt;/tt&gt; - A custom error message (default is: &quot;is not a number&quot;)
+      # * &lt;tt&gt;:on&lt;/tt&gt; Specifies when this validation is active (default is &lt;tt&gt;:save&lt;/tt&gt;, other options &lt;tt&gt;:create&lt;/tt&gt;, &lt;tt&gt;:update&lt;/tt&gt;)
+      # * &lt;tt&gt;:only_integer&lt;/tt&gt; Specifies whether the value has to be an integer, e.g. an integral value (default is +false+)
+      # * &lt;tt&gt;:allow_nil&lt;/tt&gt; Skip validation if attribute is +nil+ (default is +false+). Notice that for fixnum and float columns empty strings are converted to +nil+
+      # * &lt;tt&gt;:greater_than&lt;/tt&gt; Specifies the value must be greater than the supplied value
+      # * &lt;tt&gt;:greater_than_or_equal_to&lt;/tt&gt; Specifies the value must be greater than or equal the supplied value
+      # * &lt;tt&gt;:equal_to&lt;/tt&gt; Specifies the value must be equal to the supplied value
+      # * &lt;tt&gt;:less_than&lt;/tt&gt; Specifies the value must be less than the supplied value
+      # * &lt;tt&gt;:less_than_or_equal_to&lt;/tt&gt; Specifies the value must be less than or equal the supplied value
+      # * &lt;tt&gt;:odd&lt;/tt&gt; Specifies the value must be an odd number
+      # * &lt;tt&gt;:even&lt;/tt&gt; Specifies the value must be an even number
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
       def validates_numericality_of(*attr_names)
         configuration = { :on =&gt; :save, :only_integer =&gt; false, :allow_nil =&gt; false }</diff>
      <filename>activemodel/lib/active_model/validations/numericality.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,22 +7,26 @@ module ActiveModel
       #     validates_presence_of :first_name
       #   end
       #
-      # The first_name attribute must be in the object and it cannot be blank.
+      # The +first_name+ attribute must be in the object and it cannot be blank.
       #
-      # If you want to validate the presence of a boolean field (where the real values are true and false),
-      # you will want to use validates_inclusion_of :field_name, :in =&gt; [true, false]
-      # This is due to the way Object#blank? handles boolean values. false.blank? # =&gt; true
+      # If you want to validate the presence of a boolean field (where the real values are +true+ and +false+),
+      # you will want to use
+      #
+      #   validates_inclusion_of :field_name, :in =&gt; [true, false]
+      #
+      # This is due to the way Object#blank? handles boolean values:
+      #
+      #   false.blank? # =&gt; true
       #
       # Configuration options:
-      # * &lt;tt&gt;message&lt;/tt&gt; - A custom error message (default is: &quot;can't be blank&quot;)
-      # * &lt;tt&gt;on&lt;/tt&gt; - Specifies when this validation is active (default is :save, other options :create, :update)
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:message&lt;/tt&gt; - A custom error message (default is: &quot;can't be blank&quot;)
+      # * &lt;tt&gt;:on&lt;/tt&gt; - Specifies when this validation is active (default is &lt;tt&gt;:save&lt;/tt&gt;, other options &lt;tt&gt;:create&lt;/tt&gt;, &lt;tt&gt;:update&lt;/tt&gt;)
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      #
       def validates_presence_of(*attr_names)
         configuration = { :message =&gt; ActiveRecord::Errors.default_error_messages[:blank], :on =&gt; :save }
         configuration.update(attr_names.extract_options!)</diff>
      <filename>activemodel/lib/active_model/validations/presence.rb</filename>
    </modified>
    <modified>
      <diff>@@ -23,16 +23,16 @@ module ActiveModel
       # unique index on the field. See +add_index+ for more information.
       #
       # Configuration options:
-      # * &lt;tt&gt;message&lt;/tt&gt; - Specifies a custom error message (default is: &quot;has already been taken&quot;)
-      # * &lt;tt&gt;scope&lt;/tt&gt; - One or more columns by which to limit the scope of the uniqueness constraint.
-      # * &lt;tt&gt;case_sensitive&lt;/tt&gt; - Looks for an exact match.  Ignored by non-text columns (false by default).
-      # * &lt;tt&gt;allow_nil&lt;/tt&gt; - If set to true, skips this validation if the attribute is null (default is: false)
-      # * &lt;tt&gt;allow_blank&lt;/tt&gt; - If set to true, skips this validation if the attribute is blank (default is: false)
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:message&lt;/tt&gt; - Specifies a custom error message (default is: &quot;has already been taken&quot;)
+      # * &lt;tt&gt;:scope&lt;/tt&gt; - One or more columns by which to limit the scope of the uniqueness constraint.
+      # * &lt;tt&gt;:case_sensitive&lt;/tt&gt; - Looks for an exact match.  Ignored by non-text columns (+false+ by default).
+      # * &lt;tt&gt;:allow_nil&lt;/tt&gt; - If set to +true+, skips this validation if the attribute is +nil+ (default is: +false+)
+      # * &lt;tt&gt;:allow_blank&lt;/tt&gt; - If set to +true+, skips this validation if the attribute is blank (default is: +false+)
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
       def validates_uniqueness_of(*attr_names)
         configuration = { :message =&gt; ActiveRecord::Errors.default_error_messages[:taken] }</diff>
      <filename>activemodel/lib/active_model/validations/uniqueness.rb</filename>
    </modified>
    <modified>
      <diff>@@ -179,6 +179,16 @@ module ActiveRecord
           end
         end
 
+        # Loads the target if needed and returns it.
+        #
+        # This method is abstract in the sense that it relies on +find_target+,
+        # which is expected to be provided by descendants.
+        #
+        # If the target is already loaded it is just returned. Thus, you can call
+        # +load_target+ unconditionally to get the target.
+        #
+        # ActiveRecord::RecordNotFound is rescued within the method, and it is
+        # not reraised. The proxy is reset and +nil+ is the return value.
         def load_target
           return nil unless defined?(@loaded)
 </diff>
      <filename>activerecord/lib/active_record/associations/association_proxy.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,22 +11,18 @@ module ActiveRecord #:nodoc:
   class SubclassNotFound &lt; ActiveRecordError #:nodoc:
   end
 
-  # Raised when object assigned to association is of incorrect type.
+  # Raised when an object assigned to an association has an incorrect type.
   #
-  # Example:
-  #
-  # class Ticket &lt; ActiveRecord::Base
-  #   has_many :patches
-  # end
-  #
-  # class Patch &lt; ActiveRecord::Base
-  #   belongs_to :ticket
-  # end
+  #   class Ticket &lt; ActiveRecord::Base
+  #     has_many :patches
+  #   end
   #
-  # and somewhere in the code:
+  #   class Patch &lt; ActiveRecord::Base
+  #     belongs_to :ticket
+  #   end
   #
-  # @ticket.patches &lt;&lt; Comment.new(:content =&gt; &quot;Please attach tests to your patch.&quot;)
-  # @ticket.save
+  #   # Comments are not patches, this assignment raises AssociationTypeMismatch.
+  #   @ticket.patches &lt;&lt; Comment.new(:content =&gt; &quot;Please attach tests to your patch.&quot;)
   class AssociationTypeMismatch &lt; ActiveRecordError
   end
 
@@ -59,14 +55,14 @@ module ActiveRecord #:nodoc:
   class StatementInvalid &lt; ActiveRecordError
   end
 
-  # Raised when number of bind variables in statement given to :condition key (for example, when using +find+ method)
+  # Raised when number of bind variables in statement given to &lt;tt&gt;:condition&lt;/tt&gt; key (for example, when using +find+ method)
   # does not match number of expected variables.
   #
-  # Example:
+  # For example, in
   #
-  # Location.find :all, :conditions =&gt; [&quot;lat = ? AND lng = ?&quot;, 53.7362]
+  #   Location.find :all, :conditions =&gt; [&quot;lat = ? AND lng = ?&quot;, 53.7362]
   #
-  # in example above two placeholders are given but only one variable to fill them.
+  # two placeholders are given but only one variable to fill them.
   class PreparedStatementInvalid &lt; ActiveRecordError
   end
 
@@ -97,8 +93,8 @@ module ActiveRecord #:nodoc:
   end
 
   # Raised when you've tried to access a column which wasn't
-  # loaded by your finder.  Typically this is because :select
-  # has been specified
+  # loaded by your finder.  Typically this is because &lt;tt&gt;:select&lt;/tt&gt;
+  # has been specified.
   class MissingAttributeError &lt; NoMethodError
   end
 
@@ -206,7 +202,7 @@ module ActiveRecord #:nodoc:
   #     # Uses an integer of seconds to hold the length of the song
   #
   #     def length=(minutes)
-  #       write_attribute(:length, minutes * 60)
+  #       write_attribute(:length, minutes.to_i * 60)
   #     end
   #
   #     def length
@@ -256,7 +252,7 @@ module ActiveRecord #:nodoc:
   #
   # It's even possible to use all the additional parameters to find. For example, the full interface for Payment.find_all_by_amount
   # is actually Payment.find_all_by_amount(amount, options). And the full interface to Person.find_by_user_name is
-  # actually Person.find_by_user_name(user_name, options). So you could call &lt;tt&gt;Payment.find_all_by_amount(50, :order =&gt; &quot;created_on&quot;)&lt;/tt&gt;.
+  # actually &lt;tt&gt;Person.find_by_user_name(user_name, options)&lt;/tt&gt;. So you could call &lt;tt&gt;Payment.find_all_by_amount(50, :order =&gt; &quot;created_on&quot;)&lt;/tt&gt;.
   #
   # The same dynamic finder style can be used to create the object if it doesn't already exist. This dynamic finder is called with
   # &lt;tt&gt;find_or_create_by_&lt;/tt&gt; and will return the object if it already exists and otherwise creates it, then returns it. Protected attributes won't be set unless they are given in a block. For example:
@@ -457,9 +453,9 @@ module ActiveRecord #:nodoc:
       # * &lt;tt&gt;:limit&lt;/tt&gt;: An integer determining the limit on the number of rows that should be returned.
       # * &lt;tt&gt;:offset&lt;/tt&gt;: An integer determining the offset from where the rows should be fetched. So at 5, it would skip rows 0 through 4.
       # * &lt;tt&gt;:joins&lt;/tt&gt;: Either an SQL fragment for additional joins like &quot;LEFT JOIN comments ON comments.post_id = id&quot; (rarely needed)
-      #   or named associations in the same form used for the :include option, which will perform an INNER JOIN on the associated table(s).
+      #   or named associations in the same form used for the &lt;tt&gt;:include&lt;/tt&gt; option, which will perform an INNER JOIN on the associated table(s).
       #   If the value is a string, then the records will be returned read-only since they will have attributes that do not correspond to the table's columns.
-      #   Pass :readonly =&gt; false to override.
+      #   Pass &lt;tt&gt;:readonly =&gt; false&lt;/tt&gt; to override.
       # * &lt;tt&gt;:include&lt;/tt&gt;: Names associations that should be loaded alongside using LEFT OUTER JOINs. The symbols named refer
       #   to already defined associations. See eager loading under Associations.
       # * &lt;tt&gt;:select&lt;/tt&gt;: By default, this is * as in SELECT * FROM, but can be changed if you, for example, want to do a join but not
@@ -468,7 +464,7 @@ module ActiveRecord #:nodoc:
       #   of a database view).
       # * &lt;tt&gt;:readonly&lt;/tt&gt;: Mark the returned records read-only so they cannot be saved or updated.
       # * &lt;tt&gt;:lock&lt;/tt&gt;: An SQL fragment like &quot;FOR UPDATE&quot; or &quot;LOCK IN SHARE MODE&quot;.
-      #   :lock =&gt; true gives connection's default exclusive lock, usually &quot;FOR UPDATE&quot;.
+      #   &lt;tt&gt;:lock =&gt; true&lt;/tt&gt; gives connection's default exclusive lock, usually &quot;FOR UPDATE&quot;.
       #
       # Examples for find by id:
       #   Person.find(1)       # returns the object for ID = 1
@@ -478,7 +474,7 @@ module ActiveRecord #:nodoc:
       #   Person.find(1, :conditions =&gt; &quot;administrator = 1&quot;, :order =&gt; &quot;created_on DESC&quot;)
       #
       # Note that returned records may not be in the same order as the ids you
-      # provide since database rows are unordered. Give an explicit :order
+      # provide since database rows are unordered. Give an explicit &lt;tt&gt;:order&lt;/tt&gt;
       # to ensure the results are sorted.
       #
       # Examples for find first:
@@ -711,7 +707,7 @@ module ActiveRecord #:nodoc:
       # +updates+     A String of column and value pairs that will be set on any records that match conditions
       # +conditions+  An SQL fragment like &quot;administrator = 1&quot; or [ &quot;user_name = ?&quot;, username ].
       #               See conditions in the intro for more info.
-      # +options+     Additional options are :limit and/or :order, see the examples for usage.
+      # +options+     Additional options are &lt;tt&gt;:limit&lt;/tt&gt; and/or &lt;tt&gt;:order&lt;/tt&gt;, see the examples for usage.
       #
       # ==== Examples
       #
@@ -1521,7 +1517,7 @@ module ActiveRecord #:nodoc:
           end
         end
 
-        # The optional scope argument is for the current :find scope.
+        # The optional scope argument is for the current &lt;tt&gt;:find&lt;/tt&gt; scope.
         def add_limit!(sql, options, scope = :auto)
           scope = scope(:find) if :auto == scope
 
@@ -1533,15 +1529,15 @@ module ActiveRecord #:nodoc:
           connection.add_limit_offset!(sql, options)
         end
 
-        # The optional scope argument is for the current :find scope.
-        # The :lock option has precedence over a scoped :lock.
+        # The optional scope argument is for the current &lt;tt&gt;:find&lt;/tt&gt; scope.
+        # The &lt;tt&gt;:lock&lt;/tt&gt; option has precedence over a scoped &lt;tt&gt;:lock&lt;/tt&gt;.
         def add_lock!(sql, options, scope = :auto)
           scope = scope(:find) if :auto == scope
           options = options.reverse_merge(:lock =&gt; scope[:lock]) if scope
           connection.add_lock!(sql, options)
         end
 
-        # The optional scope argument is for the current :find scope.
+        # The optional scope argument is for the current &lt;tt&gt;:find&lt;/tt&gt; scope.
         def add_joins!(sql, options, scope = :auto)
           scope = scope(:find) if :auto == scope
           [(scope &amp;&amp; scope[:joins]), options[:joins]].each do |join|
@@ -1556,7 +1552,7 @@ module ActiveRecord #:nodoc:
         end
 
         # Adds a sanitized version of +conditions+ to the +sql+ string. Note that the passed-in +sql+ string is changed.
-        # The optional scope argument is for the current :find scope.
+        # The optional scope argument is for the current &lt;tt&gt;:find&lt;/tt&gt; scope.
         def add_conditions!(sql, conditions, scope = :auto)
           scope = scope(:find) if :auto == scope
           conditions = [conditions]
@@ -1753,8 +1749,8 @@ module ActiveRecord #:nodoc:
 
       protected
         # Scope parameters to method calls within the block.  Takes a hash of method_name =&gt; parameters hash.
-        # method_name may be :find or :create. :find parameters may include the &lt;tt&gt;:conditions&lt;/tt&gt;, &lt;tt&gt;:joins&lt;/tt&gt;,
-        # &lt;tt&gt;:include&lt;/tt&gt;, &lt;tt&gt;:offset&lt;/tt&gt;, &lt;tt&gt;:limit&lt;/tt&gt;, and &lt;tt&gt;:readonly&lt;/tt&gt; options. :create parameters are an attributes hash.
+        # method_name may be &lt;tt&gt;:find&lt;/tt&gt; or &lt;tt&gt;:create&lt;/tt&gt;. &lt;tt&gt;:find&lt;/tt&gt; parameters may include the &lt;tt&gt;:conditions&lt;/tt&gt;, &lt;tt&gt;:joins&lt;/tt&gt;,
+        # &lt;tt&gt;:include&lt;/tt&gt;, &lt;tt&gt;:offset&lt;/tt&gt;, &lt;tt&gt;:limit&lt;/tt&gt;, and &lt;tt&gt;:readonly&lt;/tt&gt; options. &lt;tt&gt;:create&lt;/tt&gt; parameters are an attributes hash.
         #
         #   class Article &lt; ActiveRecord::Base
         #     def self.create_with_scope
@@ -1767,7 +1763,7 @@ module ActiveRecord #:nodoc:
         #   end
         #
         # In nested scopings, all previous parameters are overwritten by the innermost rule, with the exception of
-        # :conditions and :include options in :find, which are merged.
+        # &lt;tt&gt;:conditions&lt;/tt&gt; and &lt;tt&gt;:include&lt;/tt&gt; options in &lt;tt&gt;:find&lt;/tt&gt;, which are merged.
         #
         #   class Article &lt; ActiveRecord::Base
         #     def self.find_with_scope
@@ -2217,9 +2213,9 @@ module ActiveRecord #:nodoc:
         record
       end
 
-      # Returns an instance of the specified klass with the attributes of the current record. This is mostly useful in relation to
+      # Returns an instance of the specified +klass+ with the attributes of the current record. This is mostly useful in relation to
       # single-table inheritance structures where you want a subclass to appear as the superclass. This can be used along with record
-      # identification in Action Pack to allow, say, Client &lt; Company to do something like render :partial =&gt; @client.becomes(Company)
+      # identification in Action Pack to allow, say, &lt;tt&gt;Client &lt; Company&lt;/tt&gt; to do something like render &lt;tt&gt;:partial =&gt; @client.becomes(Company)&lt;/tt&gt;
       # to render that instance using the companies/company partial instead of clients/client.
       #
       # Note: The new instance will share a link to the same attributes as the original class. So any change to the attributes in either</diff>
      <filename>activerecord/lib/active_record/base.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,16 +9,16 @@ module ActiveRecord
       # Count operates using three different approaches.
       #
       # * Count all: By not passing any parameters to count, it will return a count of all the rows for the model.
-      # * Count using column : By passing a column name to count, it will return a count of all the rows for the model with supplied column present
+      # * Count using column: By passing a column name to count, it will return a count of all the rows for the model with supplied column present
       # * Count using options will find the row count matched by the options used.
       #
       # The third approach, count using options, accepts an option hash as the only parameter. The options are:
       #
       # * &lt;tt&gt;:conditions&lt;/tt&gt;: An SQL fragment like &quot;administrator = 1&quot; or [ &quot;user_name = ?&quot;, username ]. See conditions in the intro.
       # * &lt;tt&gt;:joins&lt;/tt&gt;: Either an SQL fragment for additional joins like &quot;LEFT JOIN comments ON comments.post_id = id&quot; (rarely needed)
-      #   or named associations in the same form used for the :include option, which will perform an INNER JOIN on the associated table(s).
+      #   or named associations in the same form used for the &lt;tt&gt;:include&lt;/tt&gt; option, which will perform an INNER JOIN on the associated table(s).
       #   If the value is a string, then the records will be returned read-only since they will have attributes that do not correspond to the table's columns.
-      #   Pass :readonly =&gt; false to override.
+      #   Pass &lt;tt&gt;:readonly =&gt; false&lt;/tt&gt; to override.
       # * &lt;tt&gt;:include&lt;/tt&gt;: Named associations that should be loaded alongside using LEFT OUTER JOINs. The symbols named refer
       #   to already defined associations. When using named associations, count returns the number of DISTINCT items for the model you're counting.
       #   See eager loading under Associations.
@@ -41,7 +41,7 @@ module ActiveRecord
       #   Person.count('id', :conditions =&gt; &quot;age &gt; 26&quot;) # Performs a COUNT(id)
       #   Person.count(:all, :conditions =&gt; &quot;age &gt; 26&quot;) # Performs a COUNT(*) (:all is an alias for '*')
       #
-      # Note: Person.count(:all) will not work because it will use :all as the condition.  Use Person.count instead.
+      # Note: &lt;tt&gt;Person.count(:all)&lt;/tt&gt; will not work because it will use &lt;tt&gt;:all&lt;/tt&gt; as the condition.  Use Person.count instead.
       def count(*args)
         calculate(:count, *construct_count_options_from_args(*args))
       end
@@ -75,11 +75,11 @@ module ActiveRecord
       end
 
       # This calculates aggregate values in the given column.  Methods for count, sum, average, minimum, and maximum have been added as shortcuts.
-      # Options such as :conditions, :order, :group, :having, and :joins can be passed to customize the query.
+      # Options such as &lt;tt&gt;:conditions&lt;/tt&gt;, &lt;tt&gt;:order&lt;/tt&gt;, &lt;tt&gt;:group&lt;/tt&gt;, &lt;tt&gt;:having&lt;/tt&gt;, and &lt;tt&gt;:joins&lt;/tt&gt; can be passed to customize the query.
       #
       # There are two basic forms of output:
       #   * Single aggregate value: The single value is type cast to Fixnum for COUNT, Float for AVG, and the given column's type for everything else.
-      #   * Grouped values: This returns an ordered hash of the values and groups them by the :group option.  It takes either a column name, or the name
+      #   * Grouped values: This returns an ordered hash of the values and groups them by the &lt;tt&gt;:group&lt;/tt&gt; option.  It takes either a column name, or the name
       #     of a belongs_to association.
       #
       #       values = Person.maximum(:age, :group =&gt; 'last_name')</diff>
      <filename>activerecord/lib/active_record/calculations.rb</filename>
    </modified>
    <modified>
      <diff>@@ -175,7 +175,7 @@ module ActiveRecord
     end
 
     # Establishes the connection to the database. Accepts a hash as input where
-    # the :adapter key must be specified with the name of a database adapter (in lower-case)
+    # the &lt;tt&gt;:adapter&lt;/tt&gt; key must be specified with the name of a database adapter (in lower-case)
     # example for regular databases (MySQL, Postgresql, etc):
     #
     #   ActiveRecord::Base.establish_connection(
@@ -194,6 +194,7 @@ module ActiveRecord
     #   )
     #
     # Also accepts keys as strings (for parsing from yaml for example):
+    #
     #   ActiveRecord::Base.establish_connection(
     #     &quot;adapter&quot; =&gt; &quot;sqlite&quot;,
     #     &quot;database&quot;  =&gt; &quot;path/to/dbfile&quot;</diff>
      <filename>activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb</filename>
    </modified>
    <modified>
      <diff>@@ -398,8 +398,8 @@ module ActiveRecord
       # TableDefinition#timestamps that'll add created_at and updated_at as datetimes.
       #
       # TableDefinition#references will add an appropriately-named _id column, plus a corresponding _type
-      # column if the :polymorphic option is supplied. If :polymorphic is a hash of options, these will be
-      # used when creating the _type column. So what can be written like this:
+      # column if the &lt;tt&gt;:polymorphic&lt;/tt&gt; option is supplied. If &lt;tt&gt;:polymorphic&lt;/tt&gt; is a hash of options, these will be
+      # used when creating the &lt;tt&gt;_type&lt;/tt&gt; column. So what can be written like this:
       #
       #   create_table :taggings do |t|
       #     t.integer :tag_id, :tagger_id, :taggable_id</diff>
      <filename>activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb</filename>
    </modified>
    <modified>
      <diff>@@ -45,7 +45,7 @@ module ActiveRecord
       # The +options+ hash can include the following keys:
       # [&lt;tt&gt;:id&lt;/tt&gt;]
       #   Whether to automatically add a primary key column. Defaults to true.
-      #   Join tables for has_and_belongs_to_many should set :id =&gt; false.
+      #   Join tables for +has_and_belongs_to_many+ should set &lt;tt&gt;:id =&gt; false&lt;/tt&gt;.
       # [&lt;tt&gt;:primary_key&lt;/tt&gt;]
       #   The name of the primary key, if one is to be added automatically.
       #   Defaults to +id+.</diff>
      <filename>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb</filename>
    </modified>
    <modified>
      <diff>@@ -365,7 +365,7 @@ module ActiveRecord
         create_database(name)
       end
 
-      # Create a new MySQL database with optional :charset and :collation.
+      # Create a new MySQL database with optional &lt;tt&gt;:charset&lt;/tt&gt; and &lt;tt&gt;:collation&lt;/tt&gt;.
       # Charset defaults to utf8.
       #
       # Example:</diff>
      <filename>activerecord/lib/active_record/connection_adapters/mysql_adapter.rb</filename>
    </modified>
    <modified>
      <diff>@@ -233,7 +233,7 @@ module ActiveRecord
     # * &lt;tt&gt;:username&lt;/tt&gt; -- Defaults to nothing
     # * &lt;tt&gt;:password&lt;/tt&gt; -- Defaults to nothing
     # * &lt;tt&gt;:database&lt;/tt&gt; -- The name of the database. No default, must be provided.
-    # * &lt;tt&gt;:schema_search_path&lt;/tt&gt; -- An optional schema search path for the connection given as a string of comma-separated schema names.  This is backward-compatible with the :schema_order option.
+    # * &lt;tt&gt;:schema_search_path&lt;/tt&gt; -- An optional schema search path for the connection given as a string of comma-separated schema names.  This is backward-compatible with the &lt;tt&gt;:schema_order&lt;/tt&gt; option.
     # * &lt;tt&gt;:encoding&lt;/tt&gt; -- An optional client encoding that is used in a SET client_encoding TO &lt;encoding&gt; call on the connection.
     # * &lt;tt&gt;:min_messages&lt;/tt&gt; -- An optional client min messages that is used in a SET client_min_messages TO &lt;min_messages&gt; call on the connection.
     # * &lt;tt&gt;:allow_concurrency&lt;/tt&gt; -- If true, use async query methods so Ruby threads don't deadlock; otherwise, use blocking query methods.
@@ -479,9 +479,9 @@ module ActiveRecord
         create_database(name)
       end
 
-      # Create a new PostgreSQL database.  Options include :owner, :template,
-      # :encoding, :tablespace, and :connection_limit (note that MySQL uses
-      # :charset while PostgreSQL uses :encoding).
+      # Create a new PostgreSQL database.  Options include &lt;tt&gt;:owner&lt;/tt&gt;, &lt;tt&gt;:template&lt;/tt&gt;,
+      # &lt;tt&gt;:encoding&lt;/tt&gt;, &lt;tt&gt;:tablespace&lt;/tt&gt;, and &lt;tt&gt;:connection_limit&lt;/tt&gt; (note that MySQL uses
+      # &lt;tt&gt;:charset&lt;/tt&gt; while PostgreSQL uses &lt;tt&gt;:encoding&lt;/tt&gt;).
       #
       # Example:
       #   create_database config[:database], config</diff>
      <filename>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,12 +25,12 @@ module ActiveRecord
     # Locking::Pessimistic provides support for row-level locking using
     # SELECT ... FOR UPDATE and other lock types.
     #
-    # Pass :lock =&gt; true to ActiveRecord::Base.find to obtain an exclusive
+    # Pass &lt;tt&gt;:lock =&gt; true&lt;/tt&gt; to ActiveRecord::Base.find to obtain an exclusive
     # lock on the selected rows:
     #   # select * from accounts where id=1 for update
     #   Account.find(1, :lock =&gt; true)
     #
-    # Pass :lock =&gt; 'some locking clause' to give a database-specific locking clause
+    # Pass &lt;tt&gt;:lock =&gt; 'some locking clause'&lt;/tt&gt; to give a database-specific locking clause
     # of your own such as 'LOCK IN SHARE MODE' or 'FOR UPDATE NOWAIT'.
     #
     # Example:</diff>
      <filename>activerecord/lib/active_record/locking/pessimistic.rb</filename>
    </modified>
    <modified>
      <diff>@@ -76,16 +76,16 @@ module ActiveRecord
   # * &lt;tt&gt;rename_table(old_name, new_name)&lt;/tt&gt;: Renames the table called +old_name+ to +new_name+.
   # * &lt;tt&gt;add_column(table_name, column_name, type, options)&lt;/tt&gt;: Adds a new column to the table called +table_name+
   #   named +column_name+ specified to be one of the following types:
-  #   :string, :text, :integer, :float, :decimal, :datetime, :timestamp, :time,
-  #   :date, :binary, :boolean. A default value can be specified by passing an
-  #   +options+ hash like { :default =&gt; 11 }. Other options include :limit and :null (e.g. { :limit =&gt; 50, :null =&gt; false })
+  #   &lt;tt&gt;:string&lt;/tt&gt;, &lt;tt&gt;:text&lt;/tt&gt;, &lt;tt&gt;:integer&lt;/tt&gt;, &lt;tt&gt;:float&lt;/tt&gt;, &lt;tt&gt;:decimal&lt;/tt&gt;, &lt;tt&gt;:datetime&lt;/tt&gt;, &lt;tt&gt;:timestamp&lt;/tt&gt;, &lt;tt&gt;:time&lt;/tt&gt;,
+  #   &lt;tt&gt;:date&lt;/tt&gt;, &lt;tt&gt;:binary&lt;/tt&gt;, &lt;tt&gt;:boolean&lt;/tt&gt;. A default value can be specified by passing an
+  #   +options+ hash like &lt;tt&gt;{ :default =&gt; 11 }&lt;/tt&gt;. Other options include &lt;tt&gt;:limit&lt;/tt&gt; and &lt;tt&gt;:null&lt;/tt&gt; (e.g. &lt;tt&gt;{ :limit =&gt; 50, :null =&gt; false }&lt;/tt&gt;)
   #   -- see ActiveRecord::ConnectionAdapters::TableDefinition#column for details.
   # * &lt;tt&gt;rename_column(table_name, column_name, new_column_name)&lt;/tt&gt;: Renames a column but keeps the type and content.
   # * &lt;tt&gt;change_column(table_name, column_name, type, options)&lt;/tt&gt;:  Changes the column to a different type using the same
   #   parameters as add_column.
   # * &lt;tt&gt;remove_column(table_name, column_name)&lt;/tt&gt;: Removes the column named +column_name+ from the table called +table_name+.
   # * &lt;tt&gt;add_index(table_name, column_names, options)&lt;/tt&gt;: Adds a new index with the name of the column. Other options include
-  #   :name and :unique (e.g. { :name =&gt; &quot;users_name_index&quot;, :unique =&gt; true }).
+  #   &lt;tt&gt;:name&lt;/tt&gt; and &lt;tt&gt;:unique&lt;/tt&gt; (e.g. &lt;tt&gt;{ :name =&gt; &quot;users_name_index&quot;, :unique =&gt; true }&lt;/tt&gt;).
   # * &lt;tt&gt;remove_index(table_name, index_name)&lt;/tt&gt;: Removes the index specified by +index_name+.
   #
   # == Irreversible transformations</diff>
      <filename>activerecord/lib/active_record/migration.rb</filename>
    </modified>
    <modified>
      <diff>@@ -45,7 +45,7 @@ module ActiveRecord
       end
 
       # Returns an array of AssociationReflection objects for all the associations in the class. If you only want to reflect on a
-      # certain association type, pass in the symbol (:has_many, :has_one, :belongs_to) for that as the first parameter. 
+      # certain association type, pass in the symbol (&lt;tt&gt;:has_many&lt;/tt&gt;, &lt;tt&gt;:has_one&lt;/tt&gt;, &lt;tt&gt;:belongs_to&lt;/tt&gt;) for that as the first parameter.
       # Example:
       #
       #   Account.reflect_on_all_associations             # returns an array of all associations
@@ -90,13 +90,12 @@ module ActiveRecord
 
       # Returns the hash of options used for the macro.  For example, it would return &lt;tt&gt;{ :class_name =&gt; &quot;Money&quot; }&lt;/tt&gt; for
       # &lt;tt&gt;composed_of :balance, :class_name =&gt; 'Money'&lt;/tt&gt; or +{}+ for &lt;tt&gt;has_many :clients&lt;/tt&gt;.
-
       def options
         @options
       end
 
-      # Returns the class for the macro.  For example, &lt;tt&gt;composed_of :balance, :class_name =&gt; 'Money'&lt;/tt&gt; returns the +Money+
-      # class and &lt;tt&gt;has_many :clients&lt;/tt&gt; returns the +Client+ class.
+      # Returns the class for the macro.  For example, &lt;tt&gt;composed_of :balance, :class_name =&gt; 'Money'&lt;/tt&gt; returns the Money
+      # class and &lt;tt&gt;has_many :clients&lt;/tt&gt; returns the Client class.
       def klass
         @klass ||= class_name.constantize
       end
@@ -158,16 +157,16 @@ module ActiveRecord
         @through_reflection ||= options[:through] ? active_record.reflect_on_association(options[:through]) : false
       end
 
-      # Gets an array of possible :through source reflection names
+      # Gets an array of possible &lt;tt&gt;:through&lt;/tt&gt; source reflection names:
       #
-      #   [singularized, pluralized]
+      #   [:singularized, :pluralized]
       #
       def source_reflection_names
         @source_reflection_names ||= (options[:source] ? [options[:source]] : [name.to_s.singularize, name]).collect { |n| n.to_sym }
       end
 
-      # Gets the source of the through reflection.  It checks both a singularized and pluralized form for :belongs_to or :has_many.
-      # (The :tags association on Tagging below)
+      # Gets the source of the through reflection.  It checks both a singularized and pluralized form for &lt;tt&gt;:belongs_to&lt;/tt&gt; or &lt;tt&gt;:has_many&lt;/tt&gt;.
+      # (The &lt;tt&gt;:tags&lt;/tt&gt; association on Tagging below.)
       # 
       #   class Post
       #     has_many :tags, :through =&gt; :taggings</diff>
      <filename>activerecord/lib/active_record/reflection.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,11 +8,11 @@ module ActiveRecord #:nodoc:
       end
 
       # To replicate the behavior in ActiveRecord#attributes,
-      # :except takes precedence over :only.  If :only is not set
+      # &lt;tt&gt;:except&lt;/tt&gt; takes precedence over &lt;tt&gt;:only&lt;/tt&gt;.  If &lt;tt&gt;:only&lt;/tt&gt; is not set
       # for a N level model but is set for the N+1 level models,
-      # then because :except is set to a default value, the second
-      # level model can have both :except and :only set.  So if
-      # :only is set, always delete :except.
+      # then because &lt;tt&gt;:except&lt;/tt&gt; is set to a default value, the second
+      # level model can have both &lt;tt&gt;:except&lt;/tt&gt; and &lt;tt&gt;:only&lt;/tt&gt; set.  So if
+      # &lt;tt&gt;:only&lt;/tt&gt; is set, always delete &lt;tt&gt;:except&lt;/tt&gt;.
       def serializable_attribute_names
         attribute_names = @record.attribute_names
 
@@ -38,7 +38,7 @@ module ActiveRecord #:nodoc:
         serializable_attribute_names + serializable_method_names
       end
 
-      # Add associations specified via the :includes option.
+      # Add associations specified via the &lt;tt&gt;:includes&lt;/tt&gt; option.
       # Expects a block that takes as arguments:
       #   +association+ - name of the association
       #   +records+     - the association record(s) to be serialized</diff>
      <filename>activerecord/lib/active_record/serialization.rb</filename>
    </modified>
    <modified>
      <diff>@@ -16,8 +16,8 @@ module ActiveRecord #:nodoc:
     #   # =&gt; {&quot;id&quot;: 1, &quot;name&quot;: &quot;Konata Izumi&quot;, &quot;age&quot;: 16,
     #         &quot;created_at&quot;: &quot;2006/08/01&quot;, &quot;awesome&quot;: true}
     #
-    # The :only and :except options can be used to limit the attributes
-    # included, and work similar to the #attributes method. For example:
+    # The &lt;tt&gt;:only&lt;/tt&gt; and &lt;tt&gt;:except&lt;/tt&gt; options can be used to limit the attributes
+    # included, and work similar to the +attributes+ method. For example:
     #
     #   konata.to_json(:only =&gt; [ :id, :name ])
     #   # =&gt; {&quot;id&quot;: 1, &quot;name&quot;: &quot;Konata Izumi&quot;}
@@ -25,14 +25,14 @@ module ActiveRecord #:nodoc:
     #   konata.to_json(:except =&gt; [ :id, :created_at, :age ])
     #   # =&gt; {&quot;name&quot;: &quot;Konata Izumi&quot;, &quot;awesome&quot;: true}
     #
-    # To include any methods on the model, use :methods.
+    # To include any methods on the model, use &lt;tt&gt;:methods&lt;/tt&gt;.
     #
     #   konata.to_json(:methods =&gt; :permalink)
     #   # =&gt; {&quot;id&quot;: 1, &quot;name&quot;: &quot;Konata Izumi&quot;, &quot;age&quot;: 16,
     #         &quot;created_at&quot;: &quot;2006/08/01&quot;, &quot;awesome&quot;: true,
     #         &quot;permalink&quot;: &quot;1-konata-izumi&quot;}
     #
-    # To include associations, use :include.
+    # To include associations, use &lt;tt&gt;:include&lt;/tt&gt;.
     #
     #   konata.to_json(:include =&gt; :posts)
     #   # =&gt; {&quot;id&quot;: 1, &quot;name&quot;: &quot;Konata Izumi&quot;, &quot;age&quot;: 16,</diff>
      <filename>activerecord/lib/active_record/serializers/json_serializer.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ module ActiveRecord #:nodoc:
   module Serialization
     # Builds an XML document to represent the model. Some configuration is
     # available through +options+. However more complicated cases should
-    # override ActiveRecord's to_xml method.
+    # override ActiveRecord::Base#to_xml.
     #
     # By default the generated XML document will include the processing
     # instruction and all the object's attributes. For example:
@@ -22,12 +22,12 @@ module ActiveRecord #:nodoc:
     #     &lt;last-read type=&quot;date&quot;&gt;2004-04-15&lt;/last-read&gt;
     #   &lt;/topic&gt;
     #
-    # This behavior can be controlled with :only, :except,
-    # :skip_instruct, :skip_types and :dasherize. The :only and
-    # :except options are the same as for the #attributes method.
-    # The default is to dasherize all column names, to disable this,
-    # set :dasherize to false. To not have the column type included
-    # in the XML output, set :skip_types to true.
+    # This behavior can be controlled with &lt;tt&gt;:only&lt;/tt&gt;, &lt;tt&gt;:except&lt;/tt&gt;,
+    # &lt;tt&gt;:skip_instruct&lt;/tt&gt;, &lt;tt&gt;:skip_types&lt;/tt&gt; and &lt;tt&gt;:dasherize&lt;/tt&gt;.
+    # The &lt;tt&gt;:only&lt;/tt&gt; and &lt;tt&gt;:except&lt;/tt&gt; options are the same as for the
+    # +attributes+ method. The default is to dasherize all column names, but you
+    # can disable this setting &lt;tt&gt;:dasherize&lt;/tt&gt; to +false+. To not have the
+    # column type included in the XML output set &lt;tt&gt;:skip_types&lt;/tt&gt; to +true+.
     #
     # For instance:
     #
@@ -43,7 +43,7 @@ module ActiveRecord #:nodoc:
     #     &lt;last-read type=&quot;date&quot;&gt;2004-04-15&lt;/last-read&gt;
     #   &lt;/topic&gt;
     #
-    # To include first level associations use :include
+    # To include first level associations use &lt;tt&gt;:include&lt;/tt&gt;:
     #
     #   firm.to_xml :include =&gt; [ :account, :clients ]
     #
@@ -98,7 +98,7 @@ module ActiveRecord #:nodoc:
     #     &lt;/account&gt;
     #   &lt;/firm&gt;
     #
-    # To include any methods on the object(s) being called use :methods
+    # To include any methods on the model being called use &lt;tt&gt;:methods&lt;/tt&gt;:
     #
     #   firm.to_xml :methods =&gt; [ :calculated_earnings, :real_earnings ]
     #
@@ -108,9 +108,8 @@ module ActiveRecord #:nodoc:
     #     &lt;real-earnings&gt;5&lt;/real-earnings&gt;
     #   &lt;/firm&gt;
     #
-    # To call any Procs on the object(s) use :procs. The Procs
-    # are passed a modified version of the options hash that was
-    # given to #to_xml.
+    # To call any additional Procs use &lt;tt&gt;:procs&lt;/tt&gt;. The Procs are passed a
+    # modified version of the options hash that was given to +to_xml+:
     #
     #   proc = Proc.new { |options| options[:builder].tag!('abc', 'def') }
     #   firm.to_xml :procs =&gt; [ proc ]
@@ -120,7 +119,7 @@ module ActiveRecord #:nodoc:
     #     &lt;abc&gt;def&lt;/abc&gt;
     #   &lt;/firm&gt;
     #
-    # Alternatively, you can yield the builder object as part of the to_xml call:
+    # Alternatively, you can yield the builder object as part of the +to_xml+ call:
     #
     #   firm.to_xml do |xml|
     #     xml.creator do
@@ -137,8 +136,9 @@ module ActiveRecord #:nodoc:
     #     &lt;/creator&gt;
     #   &lt;/firm&gt;
     #
-    # You can override the to_xml method in your ActiveRecord::Base
-    # subclasses if you need to. The general form of doing this is:
+    # As noted above, you may override +to_xml+ in your ActiveRecord::Base
+    # subclasses to have complete control about what's generated. The general
+    # form of doing this is:
     #
     #   class IHaveMyOwnXML &lt; ActiveRecord::Base
     #     def to_xml(options = {})</diff>
      <filename>activerecord/lib/active_record/serializers/xml_serializer.rb</filename>
    </modified>
    <modified>
      <diff>@@ -201,7 +201,7 @@ module ActiveRecord
     alias_method :count, :size
     alias_method :length, :size
 
-    # Return an XML representation of this error object.
+    # Returns an XML representation of this error object.
     #
     #   class Company &lt; ActiveRecord::Base
     #     validates_presence_of :name, :address, :email
@@ -266,7 +266,7 @@ module ActiveRecord
   #   person.attributes = { &quot;last_name&quot; =&gt; &quot;Heinemeier&quot;, &quot;phone_number&quot; =&gt; &quot;555-555&quot; }
   #   person.save # =&gt; true (and person is now saved in the database)
   #
-  # An +Errors+ object is automatically created for every Active Record.
+  # An Errors object is automatically created for every Active Record.
   #
   # Please do have a look at ActiveRecord::Validations::ClassMethods for a higher level of validations.
   module Validations
@@ -286,7 +286,7 @@ module ActiveRecord
 
     # All of the following validations are defined in the class scope of the model that you're interested in validating.
     # They offer a more declarative way of specifying when the model is valid and when it is not. It is recommended to use
-    # these over the low-level calls to validate and validate_on_create when possible.
+    # these over the low-level calls to +validate+ and +validate_on_create+ when possible.
     module ClassMethods
       DEFAULT_VALIDATION_OPTIONS = {
         :on =&gt; :save,
@@ -337,14 +337,14 @@ module ActiveRecord
       #   end
       #
       # Options:
-      # * &lt;tt&gt;on&lt;/tt&gt; - Specifies when this validation is active (default is :save, other options :create, :update)
-      # * &lt;tt&gt;allow_nil&lt;/tt&gt; - Skip validation if attribute is nil.
-      # * &lt;tt&gt;allow_blank&lt;/tt&gt; - Skip validation if attribute is blank.
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:on&lt;/tt&gt; - Specifies when this validation is active (default is &lt;tt&gt;:save&lt;/tt&gt;, other options &lt;tt&gt;:create&lt;/tt&gt;, &lt;tt&gt;:update&lt;/tt&gt;).
+      # * &lt;tt&gt;:allow_nil&lt;/tt&gt; - Skip validation if attribute is +nil+.
+      # * &lt;tt&gt;:allow_blank&lt;/tt&gt; - Skip validation if attribute is blank.
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
       def validates_each(*attrs)
         options = attrs.extract_options!.symbolize_keys
@@ -374,19 +374,19 @@ module ActiveRecord
       #
       # The added +password_confirmation+ attribute is virtual; it exists only as an in-memory attribute for validating the password.
       # To achieve this, the validation adds accessors to the model for the confirmation attribute. NOTE: This check is performed
-      # only if +password_confirmation+ is not nil, and by default only on save. To require confirmation, make sure to add a presence
+      # only if +password_confirmation+ is not +nil+, and by default only on save. To require confirmation, make sure to add a presence
       # check for the confirmation attribute:
       #
       #   validates_presence_of :password_confirmation, :if =&gt; :password_changed?
       #
       # Configuration options:
-      # * &lt;tt&gt;message&lt;/tt&gt; - A custom error message (default is: &quot;doesn't match confirmation&quot;)
-      # * &lt;tt&gt;on&lt;/tt&gt; - Specifies when this validation is active (default is :save, other options :create, :update)
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:message&lt;/tt&gt; - A custom error message (default is: &quot;doesn't match confirmation&quot;).
+      # * &lt;tt&gt;:on&lt;/tt&gt; - Specifies when this validation is active (default is &lt;tt&gt;:save&lt;/tt&gt;, other options &lt;tt&gt;:create&lt;/tt&gt;, &lt;tt&gt;:update&lt;/tt&gt;).
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
       def validates_confirmation_of(*attr_names)
         configuration = { :message =&gt; ActiveRecord::Errors.default_error_messages[:confirmation], :on =&gt; :save }
@@ -406,21 +406,21 @@ module ActiveRecord
       #     validates_acceptance_of :eula, :message =&gt; &quot;must be abided&quot;
       #   end
       #
-      # If the database column does not exist, the terms_of_service attribute is entirely virtual. This check is
-      # performed only if terms_of_service is not nil and by default on save.
+      # If the database column does not exist, the +terms_of_service+ attribute is entirely virtual. This check is
+      # performed only if +terms_of_service+ is not +nil+ and by default on save.
       #
       # Configuration options:
-      # * &lt;tt&gt;message&lt;/tt&gt; - A custom error message (default is: &quot;must be accepted&quot;)
-      # * &lt;tt&gt;on&lt;/tt&gt; - Specifies when this validation is active (default is :save, other options :create, :update)
-      # * &lt;tt&gt;allow_nil&lt;/tt&gt; - Skip validation if attribute is nil. (default is true)
-      # * &lt;tt&gt;accept&lt;/tt&gt; - Specifies value that is considered accepted.  The default value is a string &quot;1&quot;, which
-      #   makes it easy to relate to an HTML checkbox. This should be set to 'true' if you are validating a database
-      #   column, since the attribute is typecast from &quot;1&quot; to &lt;tt&gt;true&lt;/tt&gt; before validation.
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:message&lt;/tt&gt; - A custom error message (default is: &quot;must be accepted&quot;).
+      # * &lt;tt&gt;:on&lt;/tt&gt; - Specifies when this validation is active (default is &lt;tt&gt;:save&lt;/tt&gt;, other options &lt;tt&gt;:create&lt;/tt&gt;, &lt;tt&gt;:update&lt;/tt&gt;).
+      # * &lt;tt&gt;:allow_nil&lt;/tt&gt; - Skip validation if attribute is +nil+ (default is true).
+      # * &lt;tt&gt;:accept&lt;/tt&gt; - Specifies value that is considered accepted.  The default value is a string &quot;1&quot;, which
+      #   makes it easy to relate to an HTML checkbox. This should be set to +true+ if you are validating a database
+      #   column, since the attribute is typecast from &quot;1&quot; to +true+ before validation.
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
       def validates_acceptance_of(*attr_names)
         configuration = { :message =&gt; ActiveRecord::Errors.default_error_messages[:accepted], :on =&gt; :save, :allow_nil =&gt; true, :accept =&gt; &quot;1&quot; }
@@ -452,8 +452,8 @@ module ActiveRecord
       # This is due to the way Object#blank? handles boolean values. false.blank? # =&gt; true
       #
       # Configuration options:
-      # * &lt;tt&gt;message&lt;/tt&gt; - A custom error message (default is: &quot;can't be blank&quot;)
-      # * &lt;tt&gt;on&lt;/tt&gt; - Specifies when this validation is active (default is :save, other options :create, :update)
+      # * &lt;tt&gt;message&lt;/tt&gt; - A custom error message (default is: &quot;can't be blank&quot;).
+      # * &lt;tt&gt;on&lt;/tt&gt; - Specifies when this validation is active (default is &lt;tt&gt;:save&lt;/tt&gt;, other options &lt;tt&gt;:create&lt;/tt&gt;, &lt;tt&gt;:update&lt;/tt&gt;).
       # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
       #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
       #   method, proc or string should return or evaluate to a true or false value.
@@ -485,24 +485,24 @@ module ActiveRecord
       #   end
       #
       # Configuration options:
-      # * &lt;tt&gt;minimum&lt;/tt&gt; - The minimum size of the attribute
-      # * &lt;tt&gt;maximum&lt;/tt&gt; - The maximum size of the attribute
-      # * &lt;tt&gt;is&lt;/tt&gt; - The exact size of the attribute
-      # * &lt;tt&gt;within&lt;/tt&gt; - A range specifying the minimum and maximum size of the attribute
-      # * &lt;tt&gt;in&lt;/tt&gt; - A synonym(or alias) for :within
-      # * &lt;tt&gt;allow_nil&lt;/tt&gt; - Attribute may be nil; skip validation.
-      # * &lt;tt&gt;allow_blank&lt;/tt&gt; - Attribute may be blank; skip validation.
-      #
-      # * &lt;tt&gt;too_long&lt;/tt&gt; - The error message if the attribute goes over the maximum (default is: &quot;is too long (maximum is %d characters)&quot;)
-      # * &lt;tt&gt;too_short&lt;/tt&gt; - The error message if the attribute goes under the minimum (default is: &quot;is too short (min is %d characters)&quot;)
-      # * &lt;tt&gt;wrong_length&lt;/tt&gt; - The error message if using the :is method and the attribute is the wrong size (default is: &quot;is the wrong length (should be %d characters)&quot;)
-      # * &lt;tt&gt;message&lt;/tt&gt; - The error message to use for a :minimum, :maximum, or :is violation.  An alias of the appropriate too_long/too_short/wrong_length message
-      # * &lt;tt&gt;on&lt;/tt&gt; - Specifies when this validation is active (default is :save, other options :create, :update)
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:minimum&lt;/tt&gt; - The minimum size of the attribute.
+      # * &lt;tt&gt;:maximum&lt;/tt&gt; - The maximum size of the attribute.
+      # * &lt;tt&gt;:is&lt;/tt&gt; - The exact size of the attribute.
+      # * &lt;tt&gt;:within&lt;/tt&gt; - A range specifying the minimum and maximum size of the attribute.
+      # * &lt;tt&gt;:in&lt;/tt&gt; - A synonym(or alias) for &lt;tt&gt;:within&lt;/tt&gt;.
+      # * &lt;tt&gt;:allow_nil&lt;/tt&gt; - Attribute may be +nil+; skip validation.
+      # * &lt;tt&gt;:allow_blank&lt;/tt&gt; - Attribute may be blank; skip validation.
+      #
+      # * &lt;tt&gt;:too_long&lt;/tt&gt; - The error message if the attribute goes over the maximum (default is: &quot;is too long (maximum is %d characters)&quot;).
+      # * &lt;tt&gt;:too_short&lt;/tt&gt; - The error message if the attribute goes under the minimum (default is: &quot;is too short (min is %d characters)&quot;).
+      # * &lt;tt&gt;:wrong_length&lt;/tt&gt; - The error message if using the &lt;tt&gt;:is&lt;/tt&gt; method and the attribute is the wrong size (default is: &quot;is the wrong length (should be %d characters)&quot;).
+      # * &lt;tt&gt;:message&lt;/tt&gt; - The error message to use for a &lt;tt&gt;:minimum&lt;/tt&gt;, &lt;tt&gt;:maximum&lt;/tt&gt;, or &lt;tt&gt;:is&lt;/tt&gt; violation.  An alias of the appropriate &lt;tt&gt;too_long&lt;/tt&gt;/&lt;tt&gt;too_short&lt;/tt&gt;/&lt;tt&gt;wrong_length&lt;/tt&gt; message.
+      # * &lt;tt&gt;:on&lt;/tt&gt; - Specifies when this validation is active (default is &lt;tt&gt;:save&lt;/tt&gt;, other options &lt;tt&gt;:create&lt;/tt&gt;, &lt;tt&gt;:update&lt;/tt&gt;).
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
       def validates_length_of(*attrs)
         # Merge given options with defaults.
@@ -584,16 +584,16 @@ module ActiveRecord
       # unique index on the field. See +add_index+ for more information.
       #
       # Configuration options:
-      # * &lt;tt&gt;message&lt;/tt&gt; - Specifies a custom error message (default is: &quot;has already been taken&quot;)
-      # * &lt;tt&gt;scope&lt;/tt&gt; - One or more columns by which to limit the scope of the uniqueness constraint.
-      # * &lt;tt&gt;case_sensitive&lt;/tt&gt; - Looks for an exact match.  Ignored by non-text columns (true by default).
-      # * &lt;tt&gt;allow_nil&lt;/tt&gt; - If set to true, skips this validation if the attribute is null (default is: false)
-      # * &lt;tt&gt;allow_blank&lt;/tt&gt; - If set to true, skips this validation if the attribute is blank (default is: false)
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:message&lt;/tt&gt; - Specifies a custom error message (default is: &quot;has already been taken&quot;).
+      # * &lt;tt&gt;:scope&lt;/tt&gt; - One or more columns by which to limit the scope of the uniqueness constraint.
+      # * &lt;tt&gt;:case_sensitive&lt;/tt&gt; - Looks for an exact match.  Ignored by non-text columns (+false+ by default).
+      # * &lt;tt&gt;:allow_nil&lt;/tt&gt; - If set to true, skips this validation if the attribute is +nil+ (default is +false+).
+      # * &lt;tt&gt;:allow_blank&lt;/tt&gt; - If set to true, skips this validation if the attribute is blank (default is +false+).
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
       def validates_uniqueness_of(*attr_names)
         configuration = { :message =&gt; ActiveRecord::Errors.default_error_messages[:taken], :case_sensitive =&gt; true }
@@ -669,21 +669,21 @@ module ActiveRecord
       #     validates_format_of :email, :with =&gt; /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i, :on =&gt; :create
       #   end
       #
-      # Note: use \A and \Z to match the start and end of the string, ^ and $ match the start/end of a line.
+      # Note: use &lt;tt&gt;\A&lt;/tt&gt; and &lt;tt&gt;\Z&lt;/tt&gt; to match the start and end of the string, &lt;tt&gt;^&lt;/tt&gt; and &lt;tt&gt;$&lt;/tt&gt; match the start/end of a line.
       #
       # A regular expression must be provided or else an exception will be raised.
       #
       # Configuration options:
-      # * &lt;tt&gt;message&lt;/tt&gt; - A custom error message (default is: &quot;is invalid&quot;)
-      # * &lt;tt&gt;allow_nil&lt;/tt&gt; - If set to true, skips this validation if the attribute is null (default is: false)
-      # * &lt;tt&gt;allow_blank&lt;/tt&gt; - If set to true, skips this validation if the attribute is blank (default is: false)
-      # * &lt;tt&gt;with&lt;/tt&gt; - The regular expression used to validate the format with (note: must be supplied!)
-      # * &lt;tt&gt;on&lt;/tt&gt; Specifies when this validation is active (default is :save, other options :create, :update)
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:message&lt;/tt&gt; - A custom error message (default is: &quot;is invalid&quot;).
+      # * &lt;tt&gt;:allow_nil&lt;/tt&gt; - If set to true, skips this validation if the attribute is +nil+ (default is +false+).
+      # * &lt;tt&gt;:allow_blank&lt;/tt&gt; - If set to true, skips this validation if the attribute is blank (default is +false+).
+      # * &lt;tt&gt;:with&lt;/tt&gt; - The regular expression used to validate the format with (note: must be supplied!).
+      # * &lt;tt&gt;:on&lt;/tt&gt; Specifies when this validation is active (default is &lt;tt&gt;:save&lt;/tt&gt;, other options &lt;tt&gt;:create&lt;/tt&gt;, &lt;tt&gt;:update&lt;/tt&gt;).
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
       def validates_format_of(*attr_names)
         configuration = { :message =&gt; ActiveRecord::Errors.default_error_messages[:invalid], :on =&gt; :save, :with =&gt; nil }
@@ -705,15 +705,15 @@ module ActiveRecord
       #   end
       #
       # Configuration options:
-      # * &lt;tt&gt;in&lt;/tt&gt; - An enumerable object of available items
-      # * &lt;tt&gt;message&lt;/tt&gt; - Specifies a custom error message (default is: &quot;is not included in the list&quot;)
-      # * &lt;tt&gt;allow_nil&lt;/tt&gt; - If set to true, skips this validation if the attribute is null (default is: false)
-      # * &lt;tt&gt;allow_blank&lt;/tt&gt; - If set to true, skips this validation if the attribute is blank (default is: false)
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:in&lt;/tt&gt; - An enumerable object of available items.
+      # * &lt;tt&gt;:message&lt;/tt&gt; - Specifies a custom error message (default is: &quot;is not included in the list&quot;).
+      # * &lt;tt&gt;:allow_nil&lt;/tt&gt; - If set to true, skips this validation if the attribute is +nil+ (default is +false+).
+      # * &lt;tt&gt;:allow_blank&lt;/tt&gt; - If set to true, skips this validation if the attribute is blank (default is +false+).
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
       def validates_inclusion_of(*attr_names)
         configuration = { :message =&gt; ActiveRecord::Errors.default_error_messages[:inclusion], :on =&gt; :save }
@@ -737,15 +737,15 @@ module ActiveRecord
       #   end
       #
       # Configuration options:
-      # * &lt;tt&gt;in&lt;/tt&gt; - An enumerable object of items that the value shouldn't be part of
-      # * &lt;tt&gt;message&lt;/tt&gt; - Specifies a custom error message (default is: &quot;is reserved&quot;)
-      # * &lt;tt&gt;allow_nil&lt;/tt&gt; - If set to true, skips this validation if the attribute is null (default is: false)
-      # * &lt;tt&gt;allow_blank&lt;/tt&gt; - If set to true, skips this validation if the attribute is blank (default is: false)
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:in&lt;/tt&gt; - An enumerable object of items that the value shouldn't be part of.
+      # * &lt;tt&gt;:message&lt;/tt&gt; - Specifies a custom error message (default is: &quot;is reserved&quot;).
+      # * &lt;tt&gt;:allow_nil&lt;/tt&gt; - If set to true, skips this validation if the attribute is +nil+ (default is +false+).
+      # * &lt;tt&gt;:allow_blank&lt;/tt&gt; - If set to true, skips this validation if the attribute is blank (default is +false+).
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
       def validates_exclusion_of(*attr_names)
         configuration = { :message =&gt; ActiveRecord::Errors.default_error_messages[:exclusion], :on =&gt; :save }
@@ -777,19 +777,19 @@ module ActiveRecord
       #     validates_associated :book
       #   end
       #
-      # ...this would specify a circular dependency and cause infinite recursion.
+      # this would specify a circular dependency and cause infinite recursion.
       #
       # NOTE: This validation will not fail if the association hasn't been assigned. If you want to ensure that the association
-      # is both present and guaranteed to be valid, you also need to use validates_presence_of.
+      # is both present and guaranteed to be valid, you also need to use +validates_presence_of+.
       #
       # Configuration options:
-      # * &lt;tt&gt;message&lt;/tt&gt; - A custom error message (default is: &quot;is invalid&quot;)
-      # * &lt;tt&gt;on&lt;/tt&gt; Specifies when this validation is active (default is :save, other options :create, :update)
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:message&lt;/tt&gt; - A custom error message (default is: &quot;is invalid&quot;)
+      # * &lt;tt&gt;:on&lt;/tt&gt; Specifies when this validation is active (default is &lt;tt&gt;:save&lt;/tt&gt;, other options &lt;tt&gt;:create&lt;/tt&gt;, &lt;tt&gt;:update&lt;/tt&gt;)
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
       def validates_associated(*attr_names)
         configuration = { :message =&gt; ActiveRecord::Errors.default_error_messages[:invalid], :on =&gt; :save }
@@ -810,22 +810,22 @@ module ActiveRecord
       #   end
       #
       # Configuration options:
-      # * &lt;tt&gt;message&lt;/tt&gt; - A custom error message (default is: &quot;is not a number&quot;)
-      # * &lt;tt&gt;on&lt;/tt&gt; Specifies when this validation is active (default is :save, other options :create, :update)
-      # * &lt;tt&gt;only_integer&lt;/tt&gt; Specifies whether the value has to be an integer, e.g. an integral value (default is false)
-      # * &lt;tt&gt;allow_nil&lt;/tt&gt; Skip validation if attribute is nil (default is false). Notice that for fixnum and float columns empty strings are converted to nil
-      # * &lt;tt&gt;greater_than&lt;/tt&gt; Specifies the value must be greater than the supplied value
-      # * &lt;tt&gt;greater_than_or_equal_to&lt;/tt&gt; Specifies the value must be greater than or equal the supplied value
-      # * &lt;tt&gt;equal_to&lt;/tt&gt; Specifies the value must be equal to the supplied value
-      # * &lt;tt&gt;less_than&lt;/tt&gt; Specifies the value must be less than the supplied value
-      # * &lt;tt&gt;less_than_or_equal_to&lt;/tt&gt; Specifies the value must be less than or equal the supplied value
-      # * &lt;tt&gt;odd&lt;/tt&gt; Specifies the value must be an odd number
-      # * &lt;tt&gt;even&lt;/tt&gt; Specifies the value must be an even number
-      # * &lt;tt&gt;if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   occur (e.g. :if =&gt; :allow_validation, or :if =&gt; Proc.new { |user| user.signup_step &gt; 2 }).  The
+      # * &lt;tt&gt;:message&lt;/tt&gt; - A custom error message (default is: &quot;is not a number&quot;).
+      # * &lt;tt&gt;:on&lt;/tt&gt; - Specifies when this validation is active (default is &lt;tt&gt;:save&lt;/tt&gt;, other options &lt;tt&gt;:create&lt;/tt&gt;, &lt;tt&gt;:update&lt;/tt&gt;).
+      # * &lt;tt&gt;:only_integer&lt;/tt&gt; - Specifies whether the value has to be an integer, e.g. an integral value (default is +false+).
+      # * &lt;tt&gt;:allow_nil&lt;/tt&gt; - Skip validation if attribute is +nil+ (default is +false+). Notice that for fixnum and float columns empty strings are converted to +nil+.
+      # * &lt;tt&gt;:greater_than&lt;/tt&gt; - Specifies the value must be greater than the supplied value.
+      # * &lt;tt&gt;:greater_than_or_equal_to&lt;/tt&gt; - Specifies the value must be greater than or equal the supplied value.
+      # * &lt;tt&gt;:equal_to&lt;/tt&gt; - Specifies the value must be equal to the supplied value.
+      # * &lt;tt&gt;:less_than&lt;/tt&gt; - Specifies the value must be less than the supplied value.
+      # * &lt;tt&gt;:less_than_or_equal_to&lt;/tt&gt; - Specifies the value must be less than or equal the supplied value.
+      # * &lt;tt&gt;:odd&lt;/tt&gt; - Specifies the value must be an odd number.
+      # * &lt;tt&gt;:even&lt;/tt&gt; - Specifies the value must be an even number.
+      # * &lt;tt&gt;:if&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   occur (e.g. &lt;tt&gt;:if =&gt; :allow_validation&lt;/tt&gt;, or &lt;tt&gt;:if =&gt; Proc.new { |user| user.signup_step &gt; 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
-      # * &lt;tt&gt;unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
-      #   not occur (e.g. :unless =&gt; :skip_validation, or :unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }).  The
+      # * &lt;tt&gt;:unless&lt;/tt&gt; - Specifies a method, proc or string to call to determine if the validation should
+      #   not occur (e.g. &lt;tt&gt;:unless =&gt; :skip_validation&lt;/tt&gt;, or &lt;tt&gt;:unless =&gt; Proc.new { |user| user.signup_step &lt;= 2 }&lt;/tt&gt;).  The
       #   method, proc or string should return or evaluate to a true or false value.
       def validates_numericality_of(*attr_names)
         configuration = { :on =&gt; :save, :only_integer =&gt; false, :allow_nil =&gt; false }
@@ -922,7 +922,7 @@ module ActiveRecord
       save(false)
     end
 
-    # Runs validate and validate_on_create or validate_on_update and returns true if no errors were added otherwise false.
+    # Runs +validate+ and +validate_on_create+ or +validate_on_update+ and returns true if no errors were added otherwise false.
     def valid?
       errors.clear
 
@@ -946,7 +946,7 @@ module ActiveRecord
     end
 
     protected
-      # Overwrite this method for validation checks on all saves and use Errors.add(field, msg) for invalid attributes.
+      # Overwrite this method for validation checks on all saves and use &lt;tt&gt;Errors.add(field, msg)&lt;/tt&gt; for invalid attributes.
       def validate #:doc:
       end
 </diff>
      <filename>activerecord/lib/active_record/validations.rb</filename>
    </modified>
    <modified>
      <diff>@@ -457,13 +457,14 @@ module ActiveResource
       # The first argument is considered to be the scope of the query.  That is, how many 
       # resources are returned from the request.  It can be one of the following.
       #
-      # +:one+:: Returns a single resource.
-      # +:first+:: Returns the first resource found.
-      # +:all+:: Returns every resource that matches the request.
+      # * &lt;tt&gt;:one&lt;/tt&gt;: Returns a single resource.
+      # * &lt;tt&gt;:first&lt;/tt&gt;: Returns the first resource found.
+      # * &lt;tt&gt;:all&lt;/tt&gt;: Returns every resource that matches the request.
       # 
       # ==== Options
-      # +from+:: Sets the path or custom method that resources will be fetched from.
-      # +params+:: Sets query and prefix (nested URL) parameters.
+      #
+      # * +from+: Sets the path or custom method that resources will be fetched from.
+      # * +params+: Sets query and prefix (nested URL) parameters.
       #
       # ==== Examples
       #   Person.find(1)                                         </diff>
      <filename>activeresource/lib/active_resource/base.rb</filename>
    </modified>
    <modified>
      <diff>@@ -128,8 +128,8 @@ module ActiveResource
     end
 
     # Execute a HEAD request.
-    # Used to ...
-    def head(path, headers= {})
+    # Used to obtain meta-information about resources, such as whether they exist and their size (via response headers).
+    def head(path, headers = {})
       request(:head, path, build_request_headers(headers))
     end
 </diff>
      <filename>activeresource/lib/active_resource/connection.rb</filename>
    </modified>
    <modified>
      <diff>@@ -49,7 +49,7 @@ module ActiveSupport
         self
       end
 
-      # Pass :force =&gt; true to force a cache miss.
+      # Pass &lt;tt&gt;:force =&gt; true&lt;/tt&gt; to force a cache miss.
       def fetch(key, options = {})
         @logger_off = true
         if !options[:force] &amp;&amp; value = read(key, options)</diff>
      <filename>activesupport/lib/active_support/cache.rb</filename>
    </modified>
    <modified>
      <diff>@@ -67,17 +67,35 @@ module ActiveSupport #:nodoc:
           end
         end
 
-        # Returns a string that represents this array in XML by sending
-        # &lt;tt&gt;to_xml&lt;/tt&gt; to each element.
+        # Returns a string that represents this array in XML by sending +to_xml+
+        # to each element. Active Record collections delegate their representation
+        # in XML to this method.
         #
-        # All elements are expected to respond to &lt;tt&gt;to_xml&lt;/tt&gt;, if any of
-        # them does not an exception is raised.
+        # All elements are expected to respond to +to_xml+, if any of them does
+        # not an exception is raised.
         #
         # The root node reflects the class name of the first element in plural
-        # if all elements belong to the same type and that's not &lt;tt&gt;Hash&lt;/tt&gt;.
-        # Otherwise the root element is &quot;records&quot;.
+        # if all elements belong to the same type and that's not Hash:
         #
-        # Root children have as node name the one of the root singularized.
+        #   customer.projects.to_xml
+        #
+        #   &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
+        #   &lt;projects type=&quot;array&quot;&gt;
+        #     &lt;project&gt;
+        #       &lt;amount type=&quot;decimal&quot;&gt;20000.0&lt;/amount&gt;
+        #       &lt;customer-id type=&quot;integer&quot;&gt;1567&lt;/customer-id&gt;
+        #       &lt;deal-date type=&quot;date&quot;&gt;2008-04-09&lt;/deal-date&gt;
+        #       ...
+        #     &lt;/project&gt;
+        #     &lt;project&gt;
+        #       &lt;amount type=&quot;decimal&quot;&gt;57230.0&lt;/amount&gt;
+        #       &lt;customer-id type=&quot;integer&quot;&gt;1567&lt;/customer-id&gt;
+        #       &lt;deal-date type=&quot;date&quot;&gt;2008-04-15&lt;/deal-date&gt;
+        #       ...
+        #     &lt;/project&gt;
+        #   &lt;/projects&gt;
+        #
+        # Otherwise the root element is &quot;records&quot;:
         #
         #   [{:foo =&gt; 1, :bar =&gt; 2}, {:baz =&gt; 3}].to_xml
         #
@@ -92,9 +110,26 @@ module ActiveSupport #:nodoc:
         #     &lt;/record&gt;
         #   &lt;/records&gt;
         #
+        # If the collection is empty the root element is &quot;nil-classes&quot; by default:
+        #
+        #   [].to_xml
+        #
+        #   &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
+        #   &lt;nil-classes type=&quot;array&quot;/&gt;
+        #
+        # To ensure a meaningful root element use the &lt;tt&gt;:root&lt;/tt&gt; option:
+        #
+        #   customer_with_no_projects.projects.to_xml(:root =&gt; &quot;projects&quot;)
+        #
+        #   &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
+        #   &lt;projects type=&quot;array&quot;/&gt;
+        #
+        # By default root children have as node name the one of the root
+        # singularized. You can change it with the &lt;tt&gt;:children&lt;/tt&gt; option.
+        #
         # The +options+ hash is passed downwards:
         #
-        #   [Message.find(:first)].to_xml(:skip_types =&gt; true)
+        #   Message.all.to_xml(:skip_types =&gt; true)
         #
         #   &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
         #   &lt;messages&gt;</diff>
      <filename>activesupport/lib/active_support/core_ext/array/conversions.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,12 @@
 # Extends the class object with class and instance accessors for class attributes,
 # just like the native attr* accessors for instance attributes.
-class Class # :nodoc:
+#
+#  class Person
+#    cattr_accessor :hair_colors
+#  end
+#
+#  Person.hair_colors = [:brown, :black, :blonde, :red]
+class Class
   def cattr_reader(*syms)
     syms.flatten.each do |sym|
       next if sym.is_a?(Hash)</diff>
      <filename>activesupport/lib/active_support/core_ext/class/attribute_accessors.rb</filename>
    </modified>
    <modified>
      <diff>@@ -70,7 +70,7 @@ module ActiveSupport #:nodoc:
         end
         
         # Provides precise Date calculations for years, months, and days.  The +options+ parameter takes a hash with 
-        # any of these keys: :years, :months, :weeks, :days.
+        # any of these keys: &lt;tt&gt;:years&lt;/tt&gt;, &lt;tt&gt;:months&lt;/tt&gt;, &lt;tt&gt;:weeks&lt;/tt&gt;, &lt;tt&gt;:days&lt;/tt&gt;.
         def advance(options)
           d = self
           d = d &gt;&gt; options.delete(:years) * 12 if options[:years]</diff>
      <filename>activesupport/lib/active_support/core_ext/date/calculations.rb</filename>
    </modified>
    <modified>
      <diff>@@ -42,8 +42,10 @@ module ActiveSupport #:nodoc:
           )
         end
 
-        # Uses Date to provide precise Time calculations for years, months, and days.  The +options+ parameter takes a hash with
-        # any of these keys: :years, :months, :weeks, :days, :hours, :minutes, :seconds.
+        # Uses Date to provide precise Time calculations for years, months, and days.
+        # The +options+ parameter takes a hash with any of these keys: &lt;tt&gt;:years&lt;/tt&gt;,
+        # &lt;tt&gt;:months&lt;/tt&gt;, &lt;tt&gt;:weeks&lt;/tt&gt;, &lt;tt&gt;:days&lt;/tt&gt;, &lt;tt&gt;:hours&lt;/tt&gt;,
+        # &lt;tt&gt;:minutes&lt;/tt&gt;, &lt;tt&gt;:seconds&lt;/tt&gt;.
         def advance(options)
           d = to_date.advance(options)
           datetime_advanced_by_date = change(:year =&gt; d.year, :month =&gt; d.month, :day =&gt; d.day)</diff>
      <filename>activesupport/lib/active_support/core_ext/date_time/calculations.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,7 @@ module Enumerable
   # Example:
   #
   #   latest_transcripts.group_by(&amp;:day).each do |day, transcripts| 
-  #     p &quot;#{day} -&gt; #{transcripts.map(&amp;:class) * ', '}&quot;
+  #     p &quot;#{day} -&gt; #{transcripts.map(&amp;:class).join(', ')}&quot;
   #   end
   #   &quot;2006-03-01 -&gt; Transcript&quot;
   #   &quot;2006-02-28 -&gt; Transcript&quot;
@@ -26,21 +26,22 @@ module Enumerable
 
   # Calculates a sum from the elements. Examples:
   #
-  #   payments.sum { |p| p.price * p.tax_rate }
-  #   payments.sum(&amp;:price)
+  #  payments.sum { |p| p.price * p.tax_rate }
+  #  payments.sum(&amp;:price)
   #
-  # This is instead of
+  # The latter is a shortcut for:
   #
-  #   payments.inject { |sum, p| sum + p.price }
+  #  payments.inject { |sum, p| sum + p.price }
   #
-  # Also calculates sums without the use of a block:
+  # It can also calculate the sum without the use of a block.
   #
-  #   [5, 15, 10].sum # =&gt; 30
+  #  [5, 15, 10].sum # =&gt; 30
+  #  [&quot;foo&quot;, &quot;bar&quot;].sum # =&gt; &quot;foobar&quot;
+  #  [[1, 2], [3, 1, 5]].sum =&gt; [1, 2, 3, 1, 5]
   #
-  # The default identity (sum of an empty list) is zero. 
-  # However, you can override this default:
+  # The default sum of an empty list is zero. You can override this default:
   #
-  #   [].sum(Payment.new(0)) { |i| i.amount } # =&gt; Payment.new(0)
+  #  [].sum(Payment.new(0)) { |i| i.amount } # =&gt; Payment.new(0)
   #
   def sum(identity = 0, &amp;block)
     return identity unless size &gt; 0</diff>
      <filename>activesupport/lib/active_support/core_ext/enumerable.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,7 @@ module ActiveSupport #:nodoc:
       #     options.reverse_merge! :size =&gt; 25, :velocity =&gt; 10
       #   end
       #
-      # The default :size and :velocity is only set if the +options+ passed in doesn't already have those keys set.
+      # The default &lt;tt&gt;:size&lt;/tt&gt; and &lt;tt&gt;:velocity&lt;/tt&gt; is only set if the +options+ passed in doesn't already have those keys set.
       module ReverseMerge
         # Performs the opposite of merge, with the keys and values from the first hash taking precedence over the second.
         def reverse_merge(other_hash)</diff>
      <filename>activesupport/lib/active_support/core_ext/hash/reverse_merge.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,16 @@
 # Extends the module object with module and instance accessors for class attributes, 
 # just like the native attr* accessors for instance attributes.
-class Module # :nodoc:
+#
+#  module AppConfiguration
+#    mattr_accessor :google_api_key
+#    self.google_api_key = &quot;123456789&quot;
+#
+#    mattr_accessor :paypal_url
+#    self.paypal_url = &quot;www.sandbox.paypal.com&quot;
+#  end
+#
+#  AppConfiguration.google_api_key = &quot;overriding the api key!&quot;
+class Module
   def mattr_reader(*syms)
     syms.each do |sym|
       next if sym.is_a?(Hash)</diff>
      <filename>activesupport/lib/active_support/core_ext/module/attribute_accessors.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,8 @@
 class Module
   # Provides a delegate class method to easily expose contained objects' methods
   # as your own. Pass one or more methods (specified as symbols or strings)
-  # and the name of the target object as the final :to option (also a symbol
-  # or string).  At least one method and the :to option are required.
+  # and the name of the target object as the final &lt;tt&gt;:to&lt;/tt&gt; option (also a symbol
+  # or string).  At least one method and the &lt;tt&gt;:to&lt;/tt&gt; option are required.
   #
   # Delegation is particularly useful with Active Record associations:
   #
@@ -20,6 +20,7 @@ class Module
   #   Foo.new.goodbye # =&gt; NoMethodError: undefined method `goodbye' for #&lt;Foo:0x1af30c&gt;
   #
   # Multiple delegates to the same target are allowed:
+  #
   #   class Foo &lt; ActiveRecord::Base
   #     belongs_to :greeter
   #     delegate :hello, :goodbye, :to =&gt; :greeter
@@ -28,7 +29,8 @@ class Module
   #   Foo.new.goodbye # =&gt; &quot;goodbye&quot;
   #
   # Methods can be delegated to instance variables, class variables, or constants
-  # by providing the variable as a symbol:
+  # by providing them as a symbols:
+  #
   #   class Foo
   #     CONSTANT_ARRAY = [0,1,2,3]
   #     @@class_array  = [4,5,6,7]</diff>
      <filename>activesupport/lib/active_support/core_ext/module/delegation.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,6 +7,14 @@ module ActiveSupport #:nodoc:
           base.alias_method_chain :include?, :range
         end
 
+        # Extends the default Range#include? to support range comparisons.
+        #  (1..5).include?(1..5) # =&gt; true
+        #  (1..5).include?(2..3) # =&gt; true
+        #  (1..5).include?(2..6) # =&gt; false
+        #
+        # The native Range#include? behavior is untouched.
+        #  (&quot;a&quot;..&quot;f&quot;).include?(&quot;c&quot;) # =&gt; true
+        #  (5..9).include?(11) # =&gt; false
         def include_with_range?(value)
           if value.is_a?(::Range)
             operator = exclude_end? ? :&lt; : :&lt;=</diff>
      <filename>activesupport/lib/active_support/core_ext/range/include_range.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,6 +3,9 @@ module ActiveSupport #:nodoc:
     module Range #:nodoc:
       # Check if Ranges overlap.
       module Overlaps
+        # Compare two ranges and see if they overlap eachother
+        #  (1..5).overlaps?(4..6) # =&gt; true
+        #  (1..5).overlaps?(7..9) # =&gt; false
         def overlaps?(other)
           include?(other.first) || other.include?(first)
         end</diff>
      <filename>activesupport/lib/active_support/core_ext/range/overlaps.rb</filename>
    </modified>
    <modified>
      <diff>@@ -46,12 +46,12 @@ module ActiveSupport #:nodoc:
             ::DateTime.civil(year, month, day, hour, min, sec, offset)
           end
 
-          # wraps class method time_with_datetime_fallback with utc_or_local == :utc
+          # Wraps class method +time_with_datetime_fallback+ with +utc_or_local+ set to &lt;tt&gt;:utc&lt;/tt&gt;.
           def utc_time(*args)
             time_with_datetime_fallback(:utc, *args)
           end
 
-          # wraps class method time_with_datetime_fallback with utc_or_local == :local
+          # Wraps class method +time_with_datetime_fallback+ with +utc_or_local+ set to &lt;tt&gt;:local&lt;/tt&gt;.
           def local_time(*args)
             time_with_datetime_fallback(:local, *args)
           end
@@ -78,8 +78,10 @@ module ActiveSupport #:nodoc:
           )
         end
 
-        # Uses Date to provide precise Time calculations for years, months, and days.  The +options+ parameter takes a hash with
-        # any of these keys: :years, :months, :weeks, :days, :hours, :minutes, :seconds.
+        # Uses Date to provide precise Time calculations for years, months, and days.
+        # The +options+ parameter takes a hash with any of these keys: &lt;tt&gt;:years&lt;/tt&gt;,
+        # &lt;tt&gt;:months&lt;/tt&gt;, &lt;tt&gt;:weeks&lt;/tt&gt;, &lt;tt&gt;:days&lt;/tt&gt;, &lt;tt&gt;:hours&lt;/tt&gt;,
+        # &lt;tt&gt;:minutes&lt;/tt&gt;, &lt;tt&gt;:seconds&lt;/tt&gt;.
         def advance(options)
           d = to_date.advance(options)
           time_advanced_by_date = change(:year =&gt; d.year, :month =&gt; d.month, :day =&gt; d.day)</diff>
      <filename>activesupport/lib/active_support/core_ext/time/calculations.rb</filename>
    </modified>
    <modified>
      <diff>@@ -68,8 +68,9 @@ module Inflector
       (@uncountables &lt;&lt; words).flatten!
     end
 
-    # Clears the loaded inflections within a given scope (default is :all). Give the scope as a symbol of the inflection type,
-    # the options are: :plurals, :singulars, :uncountables
+    # Clears the loaded inflections within a given scope (default is &lt;tt&gt;:all&lt;/tt&gt;).
+    # Give the scope as a symbol of the inflection type, the options are: &lt;tt&gt;:plurals&lt;/tt&gt;,
+    # &lt;tt&gt;:singulars&lt;/tt&gt;, &lt;tt&gt;:uncountables&lt;/tt&gt;.
     #
     # Examples:
     #   clear :all
@@ -245,13 +246,23 @@ module Inflector
     underscore(demodulize(class_name)) + (separate_class_name_and_id_with_underscore ? &quot;_id&quot; : &quot;id&quot;)
   end
 
-  # Constantize tries to find a declared constant with the name specified
-  # in the string. It raises a NameError when the name is not in CamelCase
-  # or is not initialized.
+  # Tries to find a constant with the name specified in the argument string:
   #
-  # Examples
-  #   &quot;Module&quot;.constantize #=&gt; Module
-  #   &quot;Class&quot;.constantize #=&gt; Class
+  #   &quot;Module&quot;.constantize     # =&gt; Module
+  #   &quot;Test::Unit&quot;.constantize # =&gt; Test::Unit
+  #
+  # The name is assumed to be the one of a top-level constant, no matter whether
+  # it starts with &quot;::&quot; or not. No lexical context is taken into account:
+  #
+  #   C = 'outside'
+  #   module M
+  #     C = 'inside'
+  #     C               # =&gt; 'inside'
+  #     &quot;C&quot;.constantize # =&gt; 'outside', same as ::C
+  #   end
+  #
+  # NameError is raised when the name is not in CamelCase or the constant is
+  # unknown.
   def constantize(camel_cased_word)
     unless /\A(?:::)?([A-Z]\w*(?:::[A-Z]\w*)*)\z/ =~ camel_cased_word
       raise NameError, &quot;#{camel_cased_word.inspect} is not a valid constant name!&quot;</diff>
      <filename>activesupport/lib/active_support/inflector.rb</filename>
    </modified>
    <modified>
      <diff>@@ -284,7 +284,9 @@ module ActiveSupport::Multibyte::Handlers #:nodoc:
       # passing strings to databases and validations.
       #
       # * &lt;tt&gt;str&lt;/tt&gt; - The string to perform normalization on.
-      # * &lt;tt&gt;form&lt;/tt&gt; - The form you want to normalize in. Should be one of the following: :c, :kc, :d or :kd.
+      # * &lt;tt&gt;form&lt;/tt&gt; - The form you want to normalize in. Should be one of the following:
+      #   &lt;tt&gt;:c&lt;/tt&gt;, &lt;tt&gt;:kc&lt;/tt&gt;, &lt;tt&gt;:d&lt;/tt&gt;, or &lt;tt&gt;:kd&lt;/tt&gt;. Default is
+      #   ActiveSupport::Multibyte::DEFAULT_NORMALIZATION_FORM.
       def normalize(str, form=ActiveSupport::Multibyte::DEFAULT_NORMALIZATION_FORM)
         # See http://www.unicode.org/reports/tr15, Table 1
         codepoints = u_unpack(str)</diff>
      <filename>activesupport/lib/active_support/multibyte/handlers/utf8_handler.rb</filename>
    </modified>
    <modified>
      <diff>@@ -101,7 +101,8 @@ module ActiveSupport
     end
     alias_method :rfc822, :rfc2822
   
-    # :db format outputs time in UTC; all others output time in local. Uses TimeWithZone's strftime, so %Z and %z work correctly
+    # &lt;tt&gt;:db&lt;/tt&gt; format outputs time in UTC; all others output time in local.
+    # Uses TimeWithZone's +strftime+, so &lt;tt&gt;%Z&lt;/tt&gt; and &lt;tt&gt;%z&lt;/tt&gt; work correctly.
     def to_s(format = :default) 
       return utc.to_s(format) if format == :db
       if formatter = ::Time::DATE_FORMATS[format]
@@ -111,7 +112,7 @@ module ActiveSupport
       end
     end
     
-    # Replaces %Z and %z directives with #zone and #formatted_offset, respectively, before passing to 
+    # Replaces &lt;tt&gt;%Z&lt;/tt&gt; and &lt;tt&gt;%z&lt;/tt&gt; directives with +zone+ and +formatted_offset+, respectively, before passing to
     # Time#strftime, so that zone information is correct
     def strftime(format)
       format = format.gsub('%Z', zone).gsub('%z', formatted_offset(false))
@@ -138,9 +139,9 @@ module ActiveSupport
       result.in_time_zone(time_zone)
     end
     
-    # If a time-like object is passed in, compare it with #utc
-    # Else if wrapped #time is a DateTime, use DateTime#ago instead of #-
-    # Otherwise, just pass on to method missing
+    # If a time-like object is passed in, compare it with +utc+.
+    # Else if wrapped +time+ is a DateTime, use DateTime#ago instead of DateTime#-.
+    # Otherwise, just pass on to +method_missing+.
     def -(other)
       if other.acts_like?(:time)
         utc - other
@@ -180,7 +181,7 @@ module ActiveSupport
     alias_method :hash, :to_i
     alias_method :tv_sec, :to_i
   
-    # A TimeWithZone acts like a Time, so just return self
+    # A TimeWithZone acts like a Time, so just return +self+.
     def to_time
       self
     end</diff>
      <filename>activesupport/lib/active_support/time_with_zone.rb</filename>
    </modified>
    <modified>
      <diff>@@ -572,11 +572,11 @@ module Rails
     attr_accessor :plugin_loader
     
     # Enables or disables plugin reloading.  You can get around this setting per plugin.
-    # If #reload_plugins? == false, add this to your plugin's init.rb to make it reloadable:
+    # If &lt;tt&gt;reload_plugins?&lt;/tt&gt; is false, add this to your plugin's init.rb to make it reloadable:
     #
     #   Dependencies.load_once_paths.delete lib_path
     #
-    # If #reload_plugins? == true, add this to your plugin's init.rb to only load it once:
+    # If &lt;tt&gt;reload_plugins?&lt;/tt&gt; is true, add this to your plugin's init.rb to only load it once:
     #
     #   Dependencies.load_once_paths &lt;&lt; lib_path
     #</diff>
      <filename>railties/lib/initializer.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>87ec72bd8c4b5d178ba7a41e605bc9a8e27f9e67</id>
    </parent>
  </parents>
  <author>
    <name>Xavier Noria</name>
    <email>fxn@hashref.com</email>
  </author>
  <url>http://github.com/rails/rails/commit/64092de25727c1943807bf5345107d90428135a0</url>
  <id>64092de25727c1943807bf5345107d90428135a0</id>
  <committed-date>2008-05-02T06:45:23-07:00</committed-date>
  <authored-date>2008-05-02T06:45:23-07:00</authored-date>
  <message>Improve documentation coverage and markup
Signed-off-by: Pratik Naik &lt;pratiknaik@gmail.com&gt;</message>
  <tree>87977e3b0c839fb6adb417949676bb5384155526</tree>
  <committer>
    <name>Pratik Naik</name>
    <email>pratiknaik@gmail.com</email>
  </committer>
</commit>
