Episode completed

Next epsiode starting in 3 seconds

Published at

Script

To add an omnipresent Navigation Bar in the app we first need to define how it looks and what it contains. The best place to do that is the Layout file. There, create your desired navigation. Also, add the navigation links you want the user to navigate. I am quickly adding links for the Post Index and for Creating a new Post. After setting our navbar up we can just add it in our layout definition. That way, we don’t need to add the navigation bar in every single view file. If you have multiple layouts, you may need to add the navigation to the other layouts as well. Now we have a Navbar which is visible everywhere.

Discussion