Hello and welcome in this lecture we are going to out some links so that we can link to our main paused
from the home page.
So this is what the home page looks like.
The moment what we are going to try and achieve in this Lakeshore is create links so that when you click
on the post it takes you back to the original pause at the moment.
We can't link to it although they're displayed here.
We can link to the original books.
So are we going to achieve that in this lecture.
So let's go to our Index for you.
So where are the views so if you expand these other views here on the post you have or your for you
so click on the index for you.
So this is where we are going to implement the links are I the first thing I want to do is put a div
around this right this around a div and include a boot strap clocks scan scanner tab down and just created
day.
I'm going to give it a class.
So the class too well.
W E L L.
Closed that I'll come here and wrap up the deef here and close the div are just indent this a alone
a bit and that's as well.
So to add the link we're going to use here link helper.
So on the paragraph tag here I'm just going to add some embedded Ruby clue could so do percent.
We want an output so sellitto equates to.
And when I use the link help ya the link on the score too.
So would add a text.
We want to show up in the link.
I'm just going to say
read or good to post.
Go to Post and we are.
We have to include a path for the link help.
So going to get it to good to post on the score PAFF.
That's why we did it in the link too.
I'm going to pass it.
The actual post object.
So after pass the pause variable we want to add in Bootstrap class two and class.
Each is to call on followed by the word class.
Are we going to give it the class the name of the class was gonna b button beat in dash B.
T n dash default.
There's a simple bootstrap class and eat all add in Boston.
The for us.
Now we need to close up the tag.
N use put a percent unclose that tag.
So let's say what we've done save and then refresh.
I'll already refreshed so you can now see what we've done now.
So now if I click Go took posed to take me to the original post.
Go back to home school go out links work in excellent.
So that's it for this election.
In the next lecture are we going to implement edit in.
So we need to be able to go in and edit our post.
Thanks for watching and bye for now.