Skip to content

Instantly share code, notes, and snippets.

@cheezedigital
Created June 19, 2014 00:04
Show Gist options
  • Save cheezedigital/d004e49abc85a298e244 to your computer and use it in GitHub Desktop.
Save cheezedigital/d004e49abc85a298e244 to your computer and use it in GitHub Desktop.
navbar
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<%= link_to "Justin Veirs ", root_path, class: "navbar-brand" %>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><%= link_to 'About', about_path %></li>
<li><%= link_to 'Posts', posts_path %></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment