sub edit : Local { my ( $self, $c, $user_id ) = @_; # Validate and insert/update database # simply display form (again) if does not validate return unless $c->update_from_form( $user_id ); $c->post_redirect('list', 'User updated' ); }