Method: ActionDispatch::Routing::PolymorphicRoutes#polymorphic_path
- Defined in:
- lib/action_dispatch/routing/polymorphic_routes.rb
#polymorphic_path(record_or_hash_or_array, options = {}) ⇒ Object
Returns the path component of a URL for the given record. It uses polymorphic_url with :routing_type => :path.
119 120 121 |
# File 'lib/action_dispatch/routing/polymorphic_routes.rb', line 119 def polymorphic_path(record_or_hash_or_array, = {}) polymorphic_url(record_or_hash_or_array, .merge(:routing_type => :path)) end |