Skip to content

Instantly share code, notes, and snippets.

@garigari-kun
Created November 2, 2017 08:29
Show Gist options
  • Save garigari-kun/20fef074fb81d73c1abdec7276679365 to your computer and use it in GitHub Desktop.
Save garigari-kun/20fef074fb81d73c1abdec7276679365 to your computer and use it in GitHub Desktop.
Lecture5
- Create a link for navbar
link_to(a_tag_title, controllername_methodname_path)
- Generate a controller called Page
action: home about_us contact_us products newsletter blog calendar articles login
- Create a nav and related link
Navigation bar items gonna be these...
Home
About ->
Products
Articles
Contact Us
- Make Partial for navbar
shared/_nav.html.erb
<%= render :partial => 'shared/nav' %>
Try to generate partial in command too!!!
Lecture6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment