So let us continue into the 80s, if we click on and it's to have the same thing and let us go through
our shoulder blades PSP, which is in the products folder, and we are here.
And if we click on it and it is for to through you desire is to use this route for the products, which
is for the wristwatch controller, and let us make sure we're going to see what to do because if we
click here.
We are going to be redirected to the roots for the pages, concertedly, pages called Story Roots,
and here, if you want to use only for reporters, was required to.
And we are going to do like these regular Rut's here products.
Yes.
Notice we say product in there.
We're going to put it between the time the products aims and between the products in the end and the
edit.
So we're going to say like this and it's in the directory, our resource controller is going to understand
that we are going to use this and its function.
So let us write it as big and let us repeat.
It is Larry Page, yes, and if you click on it, it's.
And.
As you can see, we're going to get this, we have products and we don't we have a blank page, we just
have a page, not funds.
And that means we have something here.
And if we go back to our political story and to make some verification to see this is the.
Added function in the.
The that I.D..
I.D., I love this or the cut on.
Let us make sure and we're going to reload the page regardless, you have this is the edit function
in the 80s.
Well, as you can see, that means we are in the edit function, so you have to keep it in your mind.
Let us go back to our shoulders.
If you want to use the edit function, which is created in your resume controller, you need just to
put restore your Eurail, which is in your roots, and after that you are going to put the iji between
the where the what you have in your roots and you're going to say edit.
That's means you're going to be using the edit function which is in the product controller and the where
we have the product as well in the resource controller, very simple and very easy.
And let us make our product controller and to do the same thing, we are going to return all properties
of this idea.
So let us go back to the controller and Chiari going to come to the edit products.
So we are going to copy all these.
We are going to copy all these excuse me, and yes, we we're going to come here using a lot of eloquence
here.
Are you going to say products?
Yes.
We can say products in its products and we are going to create a new file in our products for that we
call it is products.
The same thing, but creating needs in the.
And products for this area said that bladers P. it is products in its products, please, like these.
Yes.
And let us make our products controller and you should see we are going to get the same thing with what
we have in our pages here.
These products to copy all these cards and they are going to pass this in our edge products.
So regular sense, only something here and here if you are using, for example, a wristwatch controller
and then we're going to use Mrs. Razavi with some specification in order to in order to use or the response
rate.
Because if you type the commands below, if you say PSP.
Response.
Rhodes lists like this and you should see.
We have all these and they see you're going to see, for example, we have these.
And let us come first here in the mirror.
We have the we have the pose, as you can see, we have the pose equals, for example, to start to
save.
We have the gates if we want to view the gates or so if we are to create to view reform.
And if if we want to update, we have to put the puts.
This puts function up hotspots in the first little put it puts.
And if you want, for example, to destroy, you will report any delays like this.
So you will understand what I mean, what I mean.
So what you need to know, what you need to do.
You have to come here and everywhere you can put it.
But I prefer to put it here.
We are going to create a new input's, having a hidden type like this, and here we to say methods.
So that puts underscore methods.
So we're going to choose a method according to the updates.
And he has a we have just seen the method for the app that is put in there.
You're going to see like you're going to come here, you're going to say put like this, so is here.
And we are going also to get this idea because we are returning this product with all its properties
that we can get the idea.
And if you want to steal the controller concept, once we up, in the end it is for us to speak.
So we're going to use these controls, the idea, this kind of thing, because if we are in the process
controller, if we want to edit and after editing, we are going to update and the update function,
we need to pass as parameter.
And then but if we look at the the last method we have, use it where we had we were customizing our
own controller.
We didn't pass this parameter here, but we were considering the idea as an input.
And this is what we to carets for the project controller and we're going to do all in order to pass
as parameter.
So what are we going to do?
So let us come make our edit function in our editor's products here.
We are going to remove this.
Let us remove this and we are going to come here.
We have action.
So let us take this, we're going to grab it and bring it in the square brackets here and instead here,
we're going to put a comma, we're going to say products in order to get this idea.
And once you do, let these directly and hear products in there.
Yes.
And here we going to say update products here.
We're going to remove these products.
And by using the products controller, which is for resource controller, we just say products controller
and then you can see directly are in.
Our consulate will understand that we are the site of this update function, so let us back out at its
products here.
So are we going to try, first of all, by clicking on edits in order to be redirected here?
So let us make first of all, here and there.
Let us reloj speech and let's click on edit.
Yes.
And we restoring condition.
Yes.
We have some things here.
Let us make progress on three.
If I.
Products is products with.
And.
It is for the.
Which is the.
In the.
You raised to strong conviction.
It is big because you can see we have the era in the editors where this product does better, which
is the product for the.
ESure.
And.
Yeah, it was.
And the premise here is so it fistful of big.
Defrauds what's your first phone not use in action?
Yes, we're going to take this.
Like this and hearing us say products so and that I like this and the products controller.
Yes, we have to put it like this reason why we have this year of action, we have like these shortcuts
and let us make sure let us reload a page.
Yes, actually, yes.
And here we are going to say update's.
Leads in directly to issues concern.
I understand that's the update function.
Yes, as you can see, we edits, we have all this information and once we pick, for example, on air
put out.
So let us make some modifications here and there.
I'm going to print a message here.
I'm going to say this is the update function and.
The idea is, I've got to take this idea, yes, I'm no save it back here and also click on tablets.
Yes, you can see I have really the idea and the is here as parameter and then I can save easily.
So I'm going to come in my page controller I what to take what have put me up to its function.
And this year we are going to be using in a lot of eloquence.
So it is all this and going past it.
Sure.
I will remove all this from the line of a query builder.
Yes.
And here and say, well this.
And he will remove these inputs like this will take directly, I'd like these funds Idy and we have
all these and the products request inputs and to say directly.
And.
You going to say?
That is the post product has been updated like this ever since, and we are going to be redirected to
the products, I'm going to post products because if you put less products by default, we are going
to be redirected through the services, which is for the consumer.
So let us make in their regular Larry Page and then they just click on.
Yes.
As you can see.
And if you click on adits.
Yes, we have it.
Yeah.
The airport has been updated successfully.
As you can see, we are a research project, fake click here and they click here.
I'm going to be ready to share fully tomatoe updates in the Tohmatsu.
It's been updated successfully and they're very simple and very clear.
And in the next video, we are going to continue.
We're going to trickle the destroy function.