I have a nested resources:
resources :topic do
resource :fruits, only: [:edit, :update]
end
I want the browser url to be /topic/:topic_id/fruits(.:format)
(without /edit) instead of /topic/:topic_id/fruits/edit(.:format)
In my action controller I see I have these routes
GET /topic/:topic_id/fruits/edit
fruits#edit
PATCH /topic/:topic_id/fruits/
fruits#update
PUT /topic/:topic_id/fruits/
fruits#update