Returns the path component of a URL for the given record. It uses polymorphic_url with :routing_type => :path.
Source Code
# File action_controller/polymorphic_routes.rb, line 101 def polymorphic_path(record_or_hash_or_array, options = {}) options[:routing_type] = :path polymorphic_url(record_or_hash_or_array, options) end
<code/>and<pre/>for code samples.