Module: ActiveSupport::CoreExtensions::Array::ToParam
- Included in:
- Array
- Defined in:
- lib/active_support/core_ext/array/to_param.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#to_param ⇒ Object
When an array is given to url_for, it is converted to a slash separated string.
Instance Method Details
#to_param ⇒ Object
When an array is given to url_for, it is converted to a slash separated string.
6 7 8 |
# File 'lib/active_support/core_ext/array/to_param.rb', line 6 def to_param join '/' end |