-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
When trying to add a route at the root of a resource, what is preferred:
resources :legal, only: %i[index] do
collection do
post '', action: :legal_submit
# OR
post '/', action: :legal_submit
end
endBoth go to the same route: POST /legal.
It would be nice if rails supported omitting the first param like post action: :legal_submit
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels