Let\'s say I want to support both GET and POST methods on the same URL. How would I go about handling that in a rails controller action?
you can try this
match '/posts/multiple_action', to: 'posts#multiple_action', via: [:create, :patch, :get, :options]