instance method
polymorphic_path_for_action
Ruby on Rails 8.1.2
Since v4.2.9 PrivateSignature
polymorphic_path_for_action(action, record_or_hash, options)
No documentation comment.
Parameters
-
actionreq -
record_or_hashreq -
optionsreq
Source
# File actionpack/lib/action_dispatch/routing/polymorphic_routes.rb, line 173
def polymorphic_path_for_action(action, record_or_hash, options)
polymorphic_path(record_or_hash, options.merge(action: action))
end
Defined in actionpack/lib/action_dispatch/routing/polymorphic_routes.rb line 173
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::PolymorphicRoutes