Module: ActiveSupport::CoreExtensions::Array::Conversions

Module | ActiveSupport::CoreExtensions::Array::Conversions
In: | lib/active_support/core_ext/array/conversions.rb

### Methods

to_param to_sentence to_xml

### Public Instance methods

to_param()

When an array is given to url_for, it is converted to a slash separated string.

to_sentence(options = {})

Converts the array to comma-seperated sentence where the last element is joined by the connector word. Options:

- `:connector`: The word used to join the last element in arrays with more than two elements (default: "and")
- `:skip_last_comma`: Set to true to return "a, b, and c" instead of "a, b and c".

to_xml(options = {})

[Validate]