instance method
to_param
Ruby on Rails 5.2.8.1
Since v3.0.20Signature
to_param()
Calls to_param on all its elements and joins the result with slashes. This is used by url_for in Action Pack.
Source
# File activesupport/lib/active_support/core_ext/object/to_query.rb, line 42
def to_param
collect(&:to_param).join "/"
end
Defined in activesupport/lib/active_support/core_ext/object/to_query.rb line 42
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Array