Now that you've deleted the sample row that you added when you created the database, we'll need to implement methods for adding (and editing) a person. As creating and validating HTML forms is a repetitive and boring task (you can write your forms in HTML just like before if you like to), we're going to use
Catalyst::Controller::FormBuilder to automatically build our forms. All we have to do is create a definition of the form, and
FormBuilder will generate the HTML and validate it when the user submits it. If there's a problem with one of the fields,
FormBuilder will validate the form on the client side to save a round-trip. ...