1
00:00:00,180 --> 00:00:01,380
Welcome back.

2
00:00:01,410 --> 00:00:05,220
Let's go ahead and then fill up with a rare post.

3
00:00:05,340 --> 00:00:07,770
So let's go to the Post details.

4
00:00:07,770 --> 00:00:12,330
Or better still, let me close the opening taps and let's start from scratch.

5
00:00:12,360 --> 00:00:19,520
So first of all, let's go to the post and post details and let's use the partials.

6
00:00:19,530 --> 00:00:26,580
So let me copy the postures from the index, which is this one, the number.

7
00:00:26,580 --> 00:00:29,400
And let's go to the post details.

8
00:00:29,400 --> 00:00:35,820
And instead of this one, then now I'm going to remove this one and paste this one.

9
00:00:36,180 --> 00:00:38,640
Likewise, the footer also.

10
00:00:38,640 --> 00:00:46,140
So let's go to index and copy the code for the footer and come back to post details guys.

11
00:00:46,230 --> 00:00:52,530
And down here, let me go ahead and paste it as that.

12
00:00:52,650 --> 00:00:55,890
So the path going to be dot, dot forward slash.

13
00:00:56,250 --> 00:00:59,070
Likewise, this one.

14
00:01:00,340 --> 00:01:02,950
As dot dot voice slash.

15
00:01:03,960 --> 00:01:05,489
Let's refresh it.

16
00:01:06,180 --> 00:01:08,190
And we have the number.

17
00:01:08,190 --> 00:01:12,090
And then the photo where I have two photos here.

18
00:01:12,300 --> 00:01:16,080
So I think I need to remove the.

19
00:01:16,820 --> 00:01:17,330
Yeah.

20
00:01:17,330 --> 00:01:23,090
So let me remove the semantic for this because I have the partials down here.

21
00:01:23,540 --> 00:01:24,080
All right.

22
00:01:24,080 --> 00:01:25,190
We'll be good to go.

23
00:01:25,220 --> 00:01:31,400
So next step is that let's make use of the post and remember, we have it as post.

24
00:01:31,410 --> 00:01:35,600
So I'm going to be as simple as a, b, C, right.

25
00:01:35,810 --> 00:01:44,360
So inside here, instead of the static image, we are going to use the image of the post being found

26
00:01:44,390 --> 00:01:48,170
is equal to post dot image.

27
00:01:48,680 --> 00:01:50,510
Let's try before we continue.

28
00:01:50,540 --> 00:01:51,800
Let's refresh it.

29
00:01:52,160 --> 00:01:55,640
And indeed, we have the post here.

30
00:01:55,700 --> 00:01:59,330
Next is let's fill up the rest of the data.

31
00:01:59,540 --> 00:02:02,120
So for the user.

32
00:02:03,000 --> 00:02:06,390
I'm going to be let me copy this one.

33
00:02:06,600 --> 00:02:10,919
And for the user, let me remove the link.

34
00:02:10,919 --> 00:02:17,160
And when I beat post dot user, dot full name.

35
00:02:18,920 --> 00:02:20,630
And then the date.

36
00:02:20,630 --> 00:02:26,720
Also, I'm going to remove this one and make use of created at.

37
00:02:29,960 --> 00:02:35,540
And darts to look our date.

38
00:02:36,450 --> 00:02:37,200
String.

39
00:02:40,670 --> 00:02:43,730
All right, so let me remove this one.

40
00:02:44,210 --> 00:02:44,870
Okay.

41
00:02:45,050 --> 00:02:46,730
And then the title.

42
00:02:47,520 --> 00:02:49,890
It's going to be the title.

43
00:02:50,600 --> 00:02:52,610
Then the description.

44
00:02:53,460 --> 00:02:56,160
For this one, we are not going to truncate.

45
00:02:56,400 --> 00:02:59,910
So here is going to be the description.

46
00:03:01,240 --> 00:03:02,200
Save it.

47
00:03:02,200 --> 00:03:03,970
And let's have a look.

48
00:03:04,650 --> 00:03:07,350
And we have the actual data.

49
00:03:07,350 --> 00:03:11,010
So let me come here and click on this one.

50
00:03:11,610 --> 00:03:12,860
And there you go.

51
00:03:12,870 --> 00:03:21,270
For the CSA, you can spray the rest of the post to cover the available space here, but let's implement

52
00:03:21,270 --> 00:03:22,920
the actual logic first.

53
00:03:22,920 --> 00:03:28,470
So about the author, we are going to use the author details.

54
00:03:28,590 --> 00:03:31,110
So let's locate down.

55
00:03:31,110 --> 00:03:35,730
Here is about the author and this is the image about the author.

56
00:03:35,790 --> 00:03:43,140
And we have the one on post dot user dot profile image.

57
00:03:45,080 --> 00:03:47,090
Let's see if it'll work.

58
00:03:49,270 --> 00:03:51,580
Well, we still don't have it.

59
00:03:51,910 --> 00:03:57,750
The problem is that we are using it inside the command instead of this HTML template.

60
00:03:57,760 --> 00:04:03,820
So let's continue to scroll down and this is about the author.

61
00:04:03,820 --> 00:04:09,700
So here I'm going to copy the source of the image.

62
00:04:09,880 --> 00:04:18,640
And down here about the author, I'm going to paste that and let me provide the off as to file.

63
00:04:21,560 --> 00:04:22,400
Image.

64
00:04:24,800 --> 00:04:26,990
And then the author.

65
00:04:28,290 --> 00:04:29,940
Is going to be.

66
00:04:31,130 --> 00:04:32,780
I guess.

67
00:04:34,470 --> 00:04:40,830
Equal to post dot user dot full name.

68
00:04:43,370 --> 00:04:45,350
Okay, so let's see.

69
00:04:45,650 --> 00:04:54,620
And we have the author for the description where we are not keeping track about a description and then

70
00:04:54,700 --> 00:04:55,460
draw.

71
00:04:55,670 --> 00:04:58,260
So if we want to have it, why not?

72
00:04:58,280 --> 00:05:02,720
You can go ahead to the user model and add those fields.

73
00:05:02,720 --> 00:05:13,340
So here I'm going to add a field called Row, and it's going to be type of string.

74
00:05:14,910 --> 00:05:19,740
And I want to provide default value for the value.

75
00:05:19,770 --> 00:05:21,960
Let's use blogger.

76
00:05:23,320 --> 00:05:26,140
And let me add the comma here.

77
00:05:26,170 --> 00:05:34,420
So if you want to add a row, you can add the input field when registering or for updating, you can

78
00:05:34,420 --> 00:05:43,450
add the row field and you can also add the value about the author or the user.

79
00:05:43,510 --> 00:05:47,970
And for this one too, it's going to be of type string.

80
00:05:47,980 --> 00:05:56,800
And I want to provide default value for this one, and I'm going to copy this text here and use it as

81
00:05:56,800 --> 00:05:59,290
value and as that.

82
00:05:59,440 --> 00:06:06,730
So again, you can create a field for updating this field, but for me, I'm not going to work with

83
00:06:06,730 --> 00:06:07,270
that.

84
00:06:07,300 --> 00:06:08,020
All right.

85
00:06:08,320 --> 00:06:11,820
So next step is that let's use the data.

86
00:06:11,830 --> 00:06:14,590
So let's get back to the post details.

87
00:06:14,590 --> 00:06:24,120
And for this we are going to use the row so our copy this one and replace with this and going to be

88
00:06:24,130 --> 00:06:29,710
user and then the row save it and let's refresh.

89
00:06:31,060 --> 00:06:34,030
And we have the blogger here.

90
00:06:34,210 --> 00:06:36,380
Likewise the bio.

91
00:06:36,400 --> 00:06:39,670
So I'm going to copy this one.

92
00:06:39,670 --> 00:06:44,350
And here I'm going to change this one to bio.

93
00:06:45,440 --> 00:06:46,210
All right.

94
00:06:46,210 --> 00:06:48,280
So let's refresh it.

95
00:06:48,880 --> 00:06:50,980
And I have the bio.

96
00:06:51,010 --> 00:06:51,970
I'll start.

97
00:06:52,120 --> 00:06:59,710
So for this, let me remove the user here, because we already have the author at this place.

98
00:07:00,160 --> 00:07:09,490
Let's go up for the post details and let's locate the user, which is the post author.

99
00:07:09,520 --> 00:07:12,880
I'm going to cut this pan from here for the author.

100
00:07:12,910 --> 00:07:15,940
Save it and let's refresh it.

101
00:07:16,680 --> 00:07:20,220
And I only have the date by the post.

102
00:07:20,310 --> 00:07:27,950
What I want is I want to add the delete and the update button here for the case.

103
00:07:27,960 --> 00:07:30,260
Let's work on it in the next video.

