1 00:00:00,660 --> 00:00:08,340 Hello and welcome in this lecture we are going to out some links so that we can link to our main paused 2 00:00:08,400 --> 00:00:10,090 from the home page. 3 00:00:11,470 --> 00:00:13,940 So this is what the home page looks like. 4 00:00:14,020 --> 00:00:21,730 The moment what we are going to try and achieve in this Lakeshore is create links so that when you click 5 00:00:21,790 --> 00:00:25,390 on the post it takes you back to the original pause at the moment. 6 00:00:25,390 --> 00:00:28,740 We can't link to it although they're displayed here. 7 00:00:28,780 --> 00:00:31,040 We can link to the original books. 8 00:00:31,120 --> 00:00:34,510 So are we going to achieve that in this lecture. 9 00:00:34,780 --> 00:00:37,820 So let's go to our Index for you. 10 00:00:38,140 --> 00:00:45,150 So where are the views so if you expand these other views here on the post you have or your for you 11 00:00:45,170 --> 00:00:46,830 so click on the index for you. 12 00:00:46,840 --> 00:00:54,820 So this is where we are going to implement the links are I the first thing I want to do is put a div 13 00:00:54,910 --> 00:01:03,180 around this right this around a div and include a boot strap clocks scan scanner tab down and just created 14 00:01:03,240 --> 00:01:04,220 day. 15 00:01:07,990 --> 00:01:10,480 I'm going to give it a class. 16 00:01:13,380 --> 00:01:16,180 So the class too well. 17 00:01:16,360 --> 00:01:19,500 W E L L. 18 00:01:22,350 --> 00:01:32,270 Closed that I'll come here and wrap up the deef here and close the div are just indent this a alone 19 00:01:32,270 --> 00:01:36,030 a bit and that's as well. 20 00:01:38,170 --> 00:01:42,040 So to add the link we're going to use here link helper. 21 00:01:42,290 --> 00:01:51,650 So on the paragraph tag here I'm just going to add some embedded Ruby clue could so do percent. 22 00:01:51,730 --> 00:01:54,820 We want an output so sellitto equates to. 23 00:01:55,420 --> 00:02:00,980 And when I use the link help ya the link on the score too. 24 00:02:01,330 --> 00:02:02,880 So would add a text. 25 00:02:02,950 --> 00:02:04,730 We want to show up in the link. 26 00:02:04,780 --> 00:02:06,160 I'm just going to say 27 00:02:08,590 --> 00:02:14,550 read or good to post. 28 00:02:14,560 --> 00:02:20,840 Go to Post and we are. 29 00:02:20,860 --> 00:02:24,670 We have to include a path for the link help. 30 00:02:24,880 --> 00:02:31,630 So going to get it to good to post on the score PAFF. 31 00:02:31,810 --> 00:02:33,440 That's why we did it in the link too. 32 00:02:33,460 --> 00:02:35,770 I'm going to pass it. 33 00:02:35,770 --> 00:02:38,320 The actual post object. 34 00:02:38,740 --> 00:02:47,990 So after pass the pause variable we want to add in Bootstrap class two and class. 35 00:02:48,920 --> 00:02:54,050 Each is to call on followed by the word class. 36 00:02:54,050 --> 00:03:03,910 Are we going to give it the class the name of the class was gonna b button beat in dash B. 37 00:03:03,920 --> 00:03:08,240 T n dash default. 38 00:03:08,820 --> 00:03:13,730 There's a simple bootstrap class and eat all add in Boston. 39 00:03:14,800 --> 00:03:18,350 The for us. 40 00:03:18,630 --> 00:03:21,340 Now we need to close up the tag. 41 00:03:25,090 --> 00:03:30,730 N use put a percent unclose that tag. 42 00:03:31,510 --> 00:03:37,130 So let's say what we've done save and then refresh. 43 00:03:38,580 --> 00:03:41,210 I'll already refreshed so you can now see what we've done now. 44 00:03:41,210 --> 00:03:45,420 So now if I click Go took posed to take me to the original post. 45 00:03:45,450 --> 00:03:50,770 Go back to home school go out links work in excellent. 46 00:03:51,810 --> 00:03:53,670 So that's it for this election. 47 00:03:53,760 --> 00:03:57,740 In the next lecture are we going to implement edit in. 48 00:03:57,870 --> 00:04:02,850 So we need to be able to go in and edit our post. 49 00:04:02,880 --> 00:04:05,080 Thanks for watching and bye for now.