instance method
nested_options
Ruby on Rails 7.2.3
Since v3.0.20 PrivateSignature
nested_options()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1825
def nested_options
options = { as: parent_resource.member_name }
options[:constraints] = {
parent_resource.nested_param => param_constraint
} if param_constraint?
options
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 1825
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Resources