How to set a form's action to a route

Hi.

How can I set my form's action to a route instead of just writing url ?