Hello and welcome.
In this lecture I'm going to guide you through change in this setting for the home page for your application
blog.
The moment this is what the home page looks like.
So are we going to change it to just display is simple text that says Hello world.
It's not going to be as pretty as it's going to be.
Very big compared to this in my previous lecture.
I created a controller and named the controller Pooles controller controller also created all the files
while the files were going to look at is the in the extortive theatre mount.
E R B C R B stands for embedded Ruby.
So this is the location which created it some future post.
Let's have a look.
So this is a location inside Ceric creep in views that recreate on that post.
An index test him if he are B.
So we in the previous lecture we got rid of the default text that came with it and thus put in hell
a will well you can change your text to anything you want.
Doesn't have to be hellowallet as much as possible.
Try to make the application on your own so how your own twist to it.
As we develop so this file is called indexed or acma.
Let me show you what the yerby lookalikes.
If I go to the layout here I click on this application or at least it may not be.
This is what the tag for the b looks like embedded Ruby.
So the reason is named dot his team and or he be that you've got Ruby embedded inside hastier melt tax.
That's why it's quote embedded Ruby.
So let's go back to the view and click on the on our post this one here.
So this is what we want.
The home page to show mother to do that.
We need to specify the location in the raft.
So how do we access the around we access around.
Finally fiqh directory this territory here.
Expand that.
There is there routt are B.
Click on that so this is where all the rules for the application will be stored routing basically is
used to decide which controller receives which request so they can be more than one route to his controller
and different routes can be served by different actions actions.
Basically methods within the control.
So each action basically collects information that he provides to the view to display.
So what we have to do we need to put an entry in the file.
I'm just going to tap here.
I'm just typing the word root type in half.
Double T for root space.
The name of the controller which is pulsed followed by house attack.
Then the name of the action of the metal which is index and most actions will also have a corresponding
quantrell the corresponding view we've already got a view which is the last few here.
So what should happen in 5 see this.
Now leave this route.
Basically is the home page.
Let me say that I refresh refresh the application now.
He should display this message.
Hello world.
So let's bring that up.
If everything goes okay refresh which is he.
Hell a lot of pulling.
So great.
So if a CB home page has changed because we had a route entry in our route.
Far So now we've replaced the beautiful home page with this text that says hell or what.
So from base we can tell that we are now able to communicate with the controller we created which in
Tom's been able to communicate with the view.
So it is a view from B action controller thus giving us this information here.
So this is what is being displayed now on our homepage so we've changed the set in our way but to do
that by changing the route entering a value in the right way you see a root in.
SIEGEL And so when the page loads whenever this refers to that's what it will look.
So this is a controller and this is the action and the action has a corresponding view which is in the
extent his team Mel taught E R B.
So that's it for this lecture in this lecture or we have successfully changed the settings for.
Ah home page that displays our application blog.
Thanks for watching by phone.
If you have any issues changing the home page settings please let me know.
I'll be more than happy to help.
Thanks and bye.