1
00:00:00,770 --> 00:00:08,540
The last templates that you may need for the user is a form to update a user, and you are going to

2
00:00:08,540 --> 00:00:12,020
use a template for the user registration.

3
00:00:12,020 --> 00:00:18,770
So I'm going to copy and paste and change the name to update user.

4
00:00:21,690 --> 00:00:22,750
Yes.

5
00:00:23,040 --> 00:00:29,310
And let me rename the title to update form or update user.

6
00:00:29,550 --> 00:00:35,340
Likewise this as update user form.

7
00:00:36,600 --> 00:00:37,510
Perfect.

8
00:00:37,530 --> 00:00:44,340
So let's go ahead and then create a route to render that inside the route of users.

9
00:00:44,370 --> 00:00:53,850
I'm going to copy one of this route for rendering and going to be as this update user.

10
00:00:55,670 --> 00:00:56,360
Form.

11
00:00:57,380 --> 00:00:57,830
All right.

12
00:00:57,830 --> 00:01:00,830
So here are going to be as update.

13
00:01:02,340 --> 00:01:09,510
User form and then the actual templates you're going to be update user.

14
00:01:09,660 --> 00:01:11,730
So let's see in action.

15
00:01:16,540 --> 00:01:18,670
And there we go.

16
00:01:19,000 --> 00:01:23,770
You can see we have one problem and that is on the other template.

17
00:01:23,770 --> 00:01:27,920
You don't have the number with the exception of the home page.

18
00:01:27,940 --> 00:01:31,060
Likewise, therefore, we don't have it here.

19
00:01:31,540 --> 00:01:39,010
And to achieve that, unless you copy the number code and place it inside all the HTML template.

20
00:01:39,040 --> 00:01:43,520
Likewise the footer, but this one is not ideal.

21
00:01:43,540 --> 00:01:52,570
So let's say we have 10,000 or 20 templates unless we copy all the number of footer and place it inside

22
00:01:52,570 --> 00:01:53,620
of the template.

23
00:01:53,620 --> 00:02:00,970
And let's say in future we may change it to the number bar unless we go through our code base and change

24
00:02:00,970 --> 00:02:02,200
all the links.

25
00:02:02,350 --> 00:02:07,480
But lucky for us, you guys make it pretty easy by making use of partials.

26
00:02:07,480 --> 00:02:13,240
So let's see how we are going to make use of partials to be able to reuse a HTML code.

