2
I have the following routes:
resources :roles do
resources :role_permissions do
patch 'toggle_action/:id' => 'role_permissions#toggle_action'
end
end
I create a link as follows:
role_role_permissions_path(@role, @role_permission, permission_action)
Should mount a route similar to the route below:
# => /roles/1/role_permissions/1/toggle_action/1
But it’s generating a route like:
# => /roles/1/role_permissions/1.1
What could be?