public Method

PolymorphicRoutes.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.

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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.