Method: Array#to_param
- Defined in:
- activesupport/lib/active_support/core_ext/object/to_query.rb
#to_param ⇒ Object
Calls to_param on all its elements and joins the result with slashes. This is used by url_for in Action Pack.
42 43 44 |
# File 'activesupport/lib/active_support/core_ext/object/to_query.rb', line 42 def to_param collect(&:to_param).join "/" end |