instance method polymorphic_path

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available 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_array req
options opt = {}
Source
# File actionpack/lib/action_controller/polymorphic_routes.rb, line 112
    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 112 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::PolymorphicRoutes

Type at least 2 characters to search.

↑↓ navigate · open · esc close