instance method
to_param
Ruby on Rails 8.1.2
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 48
def to_param
collect(&:to_param).join "/"
end
Defined in activesupport/lib/active_support/core_ext/object/to_query.rb line 48
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Array