instance method
polymorphic_path
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
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_controller/polymorphic_routes.rb, line 117
def polymorphic_path(record_or_hash_or_array, options = {})
options[:routing_type] = :path
polymorphic_url(record_or_hash_or_array, options)
end
Defined in actionpack/lib/action_controller/polymorphic_routes.rb line 117
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::PolymorphicRoutes