1
00:00:00,570 --> 00:00:01,500
Hello and welcome.

2
00:00:01,500 --> 00:00:10,080
In this lecture I'm going to guide you through change in this setting for the home page for your application

3
00:00:10,080 --> 00:00:10,820
blog.

4
00:00:11,100 --> 00:00:14,640
The moment this is what the home page looks like.

5
00:00:14,640 --> 00:00:20,760
So are we going to change it to just display is simple text that says Hello world.

6
00:00:20,970 --> 00:00:23,990
It's not going to be as pretty as it's going to be.

7
00:00:23,990 --> 00:00:30,400
Very big compared to this in my previous lecture.

8
00:00:30,660 --> 00:00:41,130
I created a controller and named the controller Pooles controller controller also created all the files

9
00:00:41,580 --> 00:00:46,120
while the files were going to look at is the in the extortive theatre mount.

10
00:00:46,290 --> 00:00:50,340
E R B C R B stands for embedded Ruby.

11
00:00:50,640 --> 00:00:54,860
So this is the location which created it some future post.

12
00:00:55,110 --> 00:00:56,550
Let's have a look.

13
00:00:56,550 --> 00:01:02,690
So this is a location inside Ceric creep in views that recreate on that post.

14
00:01:02,820 --> 00:01:07,290
An index test him if he are B.

15
00:01:08,100 --> 00:01:14,540
So we in the previous lecture we got rid of the default text that came with it and thus put in hell

16
00:01:14,540 --> 00:01:17,960
a will well you can change your text to anything you want.

17
00:01:17,970 --> 00:01:21,460
Doesn't have to be hellowallet as much as possible.

18
00:01:21,480 --> 00:01:26,240
Try to make the application on your own so how your own twist to it.

19
00:01:26,250 --> 00:01:31,720
As we develop so this file is called indexed or acma.

20
00:01:31,830 --> 00:01:35,400
Let me show you what the yerby lookalikes.

21
00:01:35,400 --> 00:01:41,160
If I go to the layout here I click on this application or at least it may not be.

22
00:01:41,220 --> 00:01:45,660
This is what the tag for the b looks like embedded Ruby.

23
00:01:45,840 --> 00:01:54,620
So the reason is named dot his team and or he be that you've got Ruby embedded inside hastier melt tax.

24
00:01:54,630 --> 00:01:57,710
That's why it's quote embedded Ruby.

25
00:01:58,250 --> 00:02:07,500
So let's go back to the view and click on the on our post this one here.

26
00:02:07,620 --> 00:02:09,300
So this is what we want.

27
00:02:09,300 --> 00:02:13,020
The home page to show mother to do that.

28
00:02:13,020 --> 00:02:18,310
We need to specify the location in the raft.

29
00:02:18,600 --> 00:02:21,550
So how do we access the around we access around.

30
00:02:21,570 --> 00:02:26,230
Finally fiqh directory this territory here.

31
00:02:26,280 --> 00:02:27,630
Expand that.

32
00:02:27,650 --> 00:02:30,350
There is there routt are B.

33
00:02:30,550 --> 00:02:37,920
Click on that so this is where all the rules for the application will be stored routing basically is

34
00:02:37,920 --> 00:02:47,850
used to decide which controller receives which request so they can be more than one route to his controller

35
00:02:48,270 --> 00:02:53,240
and different routes can be served by different actions actions.

36
00:02:53,330 --> 00:02:56,010
Basically methods within the control.

37
00:02:56,250 --> 00:03:05,940
So each action basically collects information that he provides to the view to display.

38
00:03:05,940 --> 00:03:09,910
So what we have to do we need to put an entry in the file.

39
00:03:09,940 --> 00:03:11,780
I'm just going to tap here.

40
00:03:11,790 --> 00:03:17,540
I'm just typing the word root type in half.

41
00:03:18,250 --> 00:03:21,550
Double T for root space.

42
00:03:21,660 --> 00:03:29,570
The name of the controller which is pulsed followed by house attack.

43
00:03:29,920 --> 00:03:39,060
Then the name of the action of the metal which is index and most actions will also have a corresponding

44
00:03:39,070 --> 00:03:46,430
quantrell the corresponding view we've already got a view which is the last few here.

45
00:03:46,470 --> 00:03:48,830
So what should happen in 5 see this.

46
00:03:48,840 --> 00:03:53,050
Now leave this route.

47
00:03:53,200 --> 00:03:54,910
Basically is the home page.

48
00:03:55,260 --> 00:04:00,410
Let me say that I refresh refresh the application now.

49
00:04:00,580 --> 00:04:02,550
He should display this message.

50
00:04:02,580 --> 00:04:03,520
Hello world.

51
00:04:03,720 --> 00:04:05,320
So let's bring that up.

52
00:04:05,340 --> 00:04:10,880
If everything goes okay refresh which is he.

53
00:04:10,920 --> 00:04:14,360
Hell a lot of pulling.

54
00:04:14,640 --> 00:04:15,380
So great.

55
00:04:15,510 --> 00:04:22,940
So if a CB home page has changed because we had a route entry in our route.

56
00:04:23,290 --> 00:04:29,670
Far So now we've replaced the beautiful home page with this text that says hell or what.

57
00:04:29,880 --> 00:04:37,140
So from base we can tell that we are now able to communicate with the controller we created which in

58
00:04:37,220 --> 00:04:41,370
Tom's been able to communicate with the view.

59
00:04:42,210 --> 00:04:48,050
So it is a view from B action controller thus giving us this information here.

60
00:04:48,240 --> 00:04:54,240
So this is what is being displayed now on our homepage so we've changed the set in our way but to do

61
00:04:54,240 --> 00:04:59,810
that by changing the route entering a value in the right way you see a root in.

62
00:05:00,100 --> 00:05:06,480
SIEGEL And so when the page loads whenever this refers to that's what it will look.

63
00:05:06,490 --> 00:05:14,700
So this is a controller and this is the action and the action has a corresponding view which is in the

64
00:05:14,750 --> 00:05:18,350
extent his team Mel taught E R B.

65
00:05:18,670 --> 00:05:25,310
So that's it for this lecture in this lecture or we have successfully changed the settings for.

66
00:05:25,320 --> 00:05:31,610
Ah home page that displays our application blog.

67
00:05:31,630 --> 00:05:33,550
Thanks for watching by phone.

68
00:05:33,550 --> 00:05:38,020
If you have any issues changing the home page settings please let me know.

69
00:05:38,200 --> 00:05:40,210
I'll be more than happy to help.

70
00:05:40,210 --> 00:05:41,290
Thanks and bye.
