Proxy to to_param if the object will respond to it.
# File action_controller/assertions/response_assertions.rb, line 165 def parameterize(value) value.respond_to?(:to_param) ? value.to_param : value end
<code/>
<pre/>
<code/>and<pre/>for code samples.