From the match
documentation, you can use match
as long as you have via
:
match "user/account" => "user#account", as: :user_account, via: [:get, :post]
Edit: Added a as:
parameter so that it will be accessible via a url helper. user_account_path
or user_account_url
in this case.