instance method
to_param
Ruby on Rails 3.1.12
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_param.rb, line 29
def to_param
collect { |e| e.to_param }.join '/'
end
Defined in activesupport/lib/active_support/core_ext/object/to_param.rb line 29
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Array