instance method
polymorphic_path
Ruby on Rails 3.2.22.5
Since v3.0.20Signature
polymorphic_path(record_or_hash_or_array, options = {})
Returns the path component of a URL for the given record. It uses polymorphic_url with :routing_type => :path.
Parameters
-
record_or_hash_or_arrayreq -
optionsopt = {}
Source
# File actionpack/lib/action_dispatch/routing/polymorphic_routes.rb, line 134
def polymorphic_path(record_or_hash_or_array, options = {})
polymorphic_url(record_or_hash_or_array, options.merge(:routing_type => :path))
end
Defined in actionpack/lib/action_dispatch/routing/polymorphic_routes.rb line 134
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::PolymorphicRoutes