Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source
Show
Ignore:
Timestamp:
04/05/08 03:52:58 (5 months ago)
Author:
pratik
Message:

Improve documentation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activesupport/lib/active_support/core_ext/array/conversions.rb

    r9093 r9226  
    3131        end 
    3232 
    33         # Converts an array into a string suitable for use as a URL query string, using the given <tt>key</tt> as the 
    34         # param name. 
    35         # 
    36         # Example: 
     33        # Converts an array into a string suitable for use as a URL query string, 
     34        # using the given +key+ as the param name. 
    3735        # 
    3836        #   ['Rails', 'coding'].to_query('hobbies') # => "hobbies%5B%5D=Rails&hobbies%5B%5D=coding" 
     
    8179        # 
    8280        # Root children have as node name the one of the root singularized. 
    83         # 
    84         # Example: 
    8581        # 
    8682        #   [{:foo => 1, :bar => 2}, {:baz => 3}].to_xml