instance method
parameterize
Ruby on Rails 3.0.20
Since v3.0.20 PrivateSignature
parameterize(value)
Proxy to to_param if the object will respond to it.
Parameters
-
valuereq
Source
# File actionpack/lib/action_dispatch/testing/assertions/response.rb, line 78
def parameterize(value)
value.respond_to?(:to_param) ? value.to_param : value
end
Defined in actionpack/lib/action_dispatch/testing/assertions/response.rb line 78
· View on GitHub
· Improve this page
· Find usages on GitHub