- Timestamp:
- 04/05/08 03:52:58 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activesupport/lib/active_support/core_ext/array/conversions.rb
r9093 r9226 31 31 end 32 32 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. 37 35 # 38 36 # ['Rails', 'coding'].to_query('hobbies') # => "hobbies%5B%5D=Rails&hobbies%5B%5D=coding" … … 81 79 # 82 80 # Root children have as node name the one of the root singularized. 83 #84 # Example:85 81 # 86 82 # [{:foo => 1, :bar => 2}, {:baz => 3}].to_xml