Hello, friend.
Welcome back.
In a previous video, we successfully update our artist, right?
So now we can update your fast name.
That means the artist, last name, artist last name.
And the installment alone will be updated like your hair if you want to update it, subject to our edit
artist page with a specific idea.
So now I want to do I want to update our this album.
So friend, if you already knew about this concept, it should be just like that same.
Right.
So here I want to do I want to define on the bottom right.
And then you can also define that one of the links in this album name area.
So here I want to put some of the links here.
If you put this link automatically to reject or another easy place, that means the album, it it pays
for doing this.
I want to do want to create one of those Tamalpais right now, you know, template area.
That is our final step.
Right.
Soon, the first step I want to do is to create one of the new file.
And I just named this file as a edit album.
OK, just name it as eddied underscore album dot SGML.
No, I just simply save it so it'll be just like our edit artist better.
I just simply copy everything from here.
I just simply copy everything because here still be just like that.
Same right now we don't need this.
I just simply moubayed and now in our edit album I just simply it so friend here, I think you already
know about it.
I extended our best e-mail and that is actually our blog, the into the block area.
First of all there is to be so now I want to change it.
It will be as the edit album, they just name it as a edit album pays and hear that.
Also we need some of the form so that the form that they'll see us out of and the is our edit form.
So we have to also update it so that the submit button there is a name who value is updated and that
is actually the class.
So no one to do all the posts on the link in our disposition.
So that is in our edit artist area.
So if you go to our edit artist, that means here, that is our album list and that is our edit artist.
So that is actually not the editor space.
So that is our if you go home because and so that is our actual album list.
OK, like that is actually the album list.
Right.
So here you go.
See that the album list.
So here we have to do we have to define some of the link in particular that area.
So if you want to define that liying.
So that is our album and the name.
So here I define it.
If I define onto the ATF and into the heavy Feria, I just simply put it, I r put out this album name
because I save all and now refresh it.
Yeah.
Now Conservational getting that link.
So now we have to do we have to create of the function for this one because here we have to load Sarbaz.
I have already created on the base as a Edyta album.
Right.
So here we have to defining it in our view into The View I, the Dulan to create another function.
So here I want to define another function.
Function will be as a def and I want to create another function of the edit underscore album.
OK, I just name it the edit album.
And also here we have to pass that request.
Right, so we have to pass that request.
And after that I want to define the diction and into the diction.
First of all, I want to make the things as empty.
And then also we have really done our reading their base so into the render just like that same.
I have to pass our request and then also we have to load our bass.
So our bass as a fast right fast ab into the fast EP I have already created onto the bass.
So that is our bass as they edit the album.
So I just name it as edit and a score album.
OK, and then also we have to pass the context.
So there are context and here I pass out diction, so I assembly passed that picture.
So that's why we did this type of work a lot of the time.
So that is the same concept.
Right.
So for our edit artist, we did the same thing.
So right now I want to do the same things, in particular that area.
So now we have to do we have to create one of the y'all for this one, because here I want to express
our deep album.
So if you want to create that, you want to go to that you.
ORDELL That was in our first application and that is are you all so no better.
I just copy it.
And also here we have to update it with a specific idea.
So I will do that later.
Right now, first of all, I want to check it.
So I just name it as a edit album, OK?
I just name it as an edit album.
And then I have already created one of the view into The View area.
I have created our function name as he did album that just simply defined the edit album and I just
claim it as a did album.
So no, I to do on to load our pace.
So if you want to load this page.
So that is our album list into the album list.
That is our album list, and here around, we find out you are.
So I think you already know about it.
So here we have to define that you are real sorry you are ill and that you are.
Lady, we have to pass our fast step.
That means our app names or app name I have defined as a fast app may be your first step.
So I just simply copied.
And now you know our album list here.
I have to define that our first step.
Right.
And then our Into the world.
I define this part name as I did albums I just simply copied.
And now here after this, I just simply passed it.
Right.
So then it shall be defined our warrell.
So that is a fast step.
And the album.
So now if you click and save all and now if you go here, refresh this page, can you get the check.
So now showing as a template and fast app edit album so the template does not exist.
So maybe I did something wrong.
So that is our edit album.
You know, you are still I have defined that name as a detail from our you Wardell.
That is our view with a view.
I have defined this function as edit album and in this position I mean our request faster edit album.
He can see I didn't define that our daughters HTML search will be as a dot ASTM.
Right friend.
So because of all here he goes.
Our final name as a eddied underscore album DOT estimates.
I mean that is Gemal so now click the save all again and now I just refresh it.
Yeah you can see it's so perfectly loaded.
Our edit album.
So if you go here go here because it is.
Yeah.
That edit album album in particular that position.
What exactly we have to do, we have to do the same thing because of all for every album they have.
Also one of the ideas like if you go to a database and if you go to our database album to be do the
album, Tabit also that have the idea.
Right.
So now we have to we have to get a specific our decided data.
So we have to do the same things that we did for our musician.
Right.
So here we have to get our D table.
That means the AMP album table with this bill.
That is our idea.
So if you want to do that work, we have to do we have to go to our album list into the album.
Mysteria I have already defined you are as a fast app and then the edit album.
And after this after this year also we have to pass that ID.
So if you want to pass that idea like here, I'd name it as an album ID.
I just name it was the idea as the album.
My so friend here.
It doesn't mean that you have to use that album.
I do.
Whatever the things you will put on here, you can also define that only that idea.
So I know for better understanding I am just defining as an album.
At the end of the album I'll be here.
What exactly we have to define, we have to define in our disturbing display as I define them.
So I have already defined our forest to be into the forest loop.
I have already get all the data with our album list and this album list.
I find that things with the album right so far with this album, I have defined that name.
That means our database filename name.
I have defined that another database filename as a release date.
Now you can see that is the name and I released it.
Now I also want to access our I.D. So if you want to access it, then you have to define that things
with the same thing with the album.
So here I'd be fine with the album.
So with this album I want to access our database filename or database filename as an idea.
OK, so now we have to also define this idea.
Know what you are also now what you are.
Elka's here also.
We have to edit a specific one of the ideas that we need for our artist.
So it'll be just like Sam.
I just simply copied either simply pasted.
So now here it will be as a here I defined the name of the album ID.
So now I just simply copy that album idea and you know where you are.
I just simply defined that ID name will be as an album already.
So now also we have to do we have to add this album ID in our request.
That means in our view, into The View.
Previously I have passed our requested by the name as the artist I.D. So now we have to do the same
things for our edit album.
So now here I just simply passed our item name Albi as a album Idy and also now we have to do the same
things.
But I just copied because here we have to do we have to get our specific idea, all that data and also
we have to define the things we have to defining it in our album format.
Yeah, but I just copy and then customize it.
So after this eight assembly passed it.
So no, I first of all, I want to take one of the variable here.
I take variable for the album in full, so I just simply name it as the album and album info and then
our last names.
I have already defined the class in our model.
If you go to that model into the model or filename, that means that filename as an album.
So I just simply.
You find that as an album.
So this album is The Final Objects, get our primary keys right now.
Our primary key will be as the album.
So I just simply defined that as the album idea.
And then with this form, that means forms.
And here I have already defined this part here as defining it in our farms area into the farm area.
I have defined that last name will be as the album form.
So I just simply copy and now here it shall be as an album form of.
So I have already discussed about that main concept.
So now when we actually updated it for our album, I just simply defined our album form in intense and
into this intense.
I want to define all that our gate idea.
So here I have already get all that our specific idea data and take the things with this variable as
the album in.
So here we have to do we have to pass it our album info.
Right.
So no, I don't want to pass it on to pass it in our dictionary.
So before I have already passed it as a edit form.
So now I want to do and do the same thing.
So I just simply pass out, I just take that tape with the same name as the edit from and here we have
to pass that form.
So just simply pass our form.
Right.
So now we have to do we have to pass that things in our form area.
That means in addition, I just pass that things with this contradiction.
So now we can access all the data in our edit album pace.
So I have already created our edit album and the edit album here may be defined as a control jet because
I have already defined the form.
OK, so did the form that is our post method will be the same and that is our edit form.
So from this position, I have also passed that name as a edit form.
So into the edit form I just simply defined as the last paragraph and then I define it as a sort of
token.
And then I also define under of the submit button.
I think you already know about it.
That means here it should be loaded our form.
That means our in our models.
I have already defined all that our field.
So shall we load it all the our feel.
Right.
So now here I define that our edit form.
So now we have to do we have to update it.
So if you want to update it, it'll be concept will be just like that same.
So that is our form.
So before, after this OK, after this, what exactly we did on here, we need some def condition for
Stifler's.
We check as a post method or not and then our musician form here we have to proceed then valid and then
submit so better and to do the same things.
I just simply copied software after this form here.
I just simply passed it.
OK, so first of all, that is actually request will be the post on notes in our edit album here.
I have defined that Methode will be as opposed so far the results.
I don't need to do anything so that they are paused and then forms our only the form.
So now our last name as an album that means the album forms.
I just simply defined the album form, request post instead and everything.
I stand here.
I have passed what, I have passed our existing data and I just get our all the existing data and take
the things with this variable.
Right.
So no, I just simply pass our variable variable will be as the album info and then if it's valid then
it'll be save all the data and be complete in our true right.
So here shall we save all the data in our database.
So that's all you have to do.
So that exactly the same concept as I told you before, if you already know about the basic things,
we did the same things for our edit artist.
So now I just simply apply it for our edit album.
So I think every line, it should be very much clear to you what exactly the things I did on here.
So now let's check this out.
I just click, I save all, I just click as I save all now and go to our place and go to whole Kazarian
and the our Jack and the text, the two albums.
And I want to update that check.
Yes.
Now considering now it's perfectly getting our specific IDE data.
So there is already data that is you can see by default setting as a Kazarian is not showing that name
as a jack and also release date is visible.
And for this one, I have defined that number.
That means that our number is status.
I have defined as excellent, is also selected as excellent.
So now if you want to change it, like I just make that things as Michael Jackson right now.
So that means this name and that album name.
I want to change it.
Our artist name Oriental Michael Jackson.
And if you also want to change that already listed, if you want to change it as it was and because
of it, yes.
You can see it's now perfectly updated.
But here I didn't find any redacted paste like here.
You can see after that what exactly should be redacted.
I didn't find anything for the reasons is now on the same page.
But right now the director of the Jack, if you go to our home and if you go to Michael Jackson and
the Michael Jackson here, you can see Jack is now on here.
That was successfully updated.
Our release date is updated.
And also I make.
That things are the worst, so now you can see snow bit like I just show you again, go to here, I
want to make that things out there right now.
As excellent again as an update, go to Michael Jackson pays I you, Jack.
And that is updated as a type of offense.
So he successfully updated it.
So now here, if you want to do this type of work, like when you update it and then if you want to
display some of the successful message, that means when it should be updated, it will be displayed
on the success message.
How can do that work?
So for doing this is pretty much easy if you go to our view into the view that is already the album
right into the album.
First of all, you have to do we have to define all of the diction, because here I want to define some
of the prediction in the dictionary.
I have already pasar forms of additions here.
After this.
After this I take all the diction and I just, first of all, make the things as empty, OK?
And then also in our form area, that means, you know, are going to still be valid and it will be
saved.
This data and after this that I want to display some of the message.
So if you want to display the message, then you have to define that things with addiction and with
addiction.
I just simply defined an update.
OK, so here I just simply defined as the update and only the update function here on the display on
the ID.
I just simply define our name as a success.
Takes success under underscore text and into the success test, which takes you want to visible.
You can define that things on here.
I just name it as a successfully updated our album.
OK, Elbaum successfully updated this tape of one of the text I want to visible.
And here also we have to do we have to pass our this success message.
Right.
We have to pass it in our dictionary.
So if you want to pass it, then after that decision, after the discussion here, you have to define
our update.
So here we don't need this.
After this, I don't want to pass it in particular that area.
So in particular, two things I want to define in our first bracket.
OK, so now our object masses, I want to pass it in with this edit from so that it already did form
and also pass that diction in our base.
That means our album pace.
So now we have to display our D text.
That means the success stays in our edit album so we can go to our edit album and like here after this.
OK, better after this.
I want to display our this message.
So here we have to define first of all on the condition.
I just simply define the F condition.
And also we have to and it's so simply and our F condition.
So I just simply and if perfect.
So we do the and if condition, first of all here, when he get appropriate this text, that means in
particular that area we have defined our text name ID as a sexist text.
So I just simply copied.
And now here, you know, if you get appropriate this access text, then it shall be displayed on the
message.
Right.
So then it shall be displayed our this message.
So for the reasons here, I wanted to define what the bootstrap class I just take on the day plus and
also in bootstrap that have also the class for you all that your success message that actually of the
class as an alert.
So I just simply defined as alert, alert, alert, alert success.
So I just simply defined as the alert alert success.
So now in particular that position I want to display our decided data.
So that means here to have defined our ID as a success stakes and into the success stakes, I added
our districts.
That means Elbaum successfully updated.
So I just simply copied and now simply I just simply display our decide OK event.
So I think it should be very much clear to you, if you get any successful data, then should we display
our this message?
So now let's check this out.
If you don't click as save all and now I just go home.
Go to the Kazarian, click as the test on.
I want to change that name only and also make that into the excellent as update.
Yes, now can see and now showing our test message as the album successfully updated.
I hope you can well understand about it.
If you want to display this type of message to hear if they have any message, then it should be display
our this condition.
So into this condition, I define all the music class as the alert, all our success into this, our
goal, our success here.
I display our message.
So that is the message I have defined in our view.
Sended addition update.
I define our districts so that our text and that is our text.
Right.
So friend, I think it's very much clear to you how can edit your album?
And also if you want to display this passage, how can this displayed?
So no friend, your task is to do the same thing.
So right now for our this artist, that means the editor needs to hear I didn't defend any success message.
So that is your task.
I think you practice it and make that things like that away when you are let your artist and also should
be sure some of the message.
OK, so that is your practice or to try to do this.
So we successfully updated our album.
So now we have to do we have to define that our another court application that is actually the Dilek.
So right now, if you want to direct your all that artist name, how can they let it?
Also, if you want to direct your album name.
So here if you go to the Michael Jackson.
So they have also sold the album.
So if you want to direct this album, how can do that work?
In our next video, I will show you that things with the live example.
So thanks for watching and I will see you in the next video.