nova
k
u
n
Experiments
Game's Portfolio
Rails Portfolio
Blog
Log In
Experiments
Game's Portfolio
Rail's Portfolio
Blog
Log In
How do you ensure a custom route only matches POST requests?
Choose the correct way to define a POST-only custom route.
get '/custom', via: :post
route '/custom' => 'controller#action', method: 'POST'
match '/custom', to: 'controller#action', via: :post
resources '/custom', only: :post
Question 1 of 10