Firstly for a user to be able to order parking in a particular zone they must be able to add their owned vehicles. In this lesson, we will start to implement our first CRUD. When a user is registered or logged in he will be redirected to the
vehicles.index page. Yet we have only a placeholder for the vehicles list because we do not have any vehicles stored and need to create some first.
And the form to add a vehicle will look like this. After pressing the
Save vehicle form is submitted to the server and then redirected back to the list. Pressing the
Cancel redirect will immediately disregard the form without submitting it.