Skip to content

Instantly share code, notes, and snippets.

@bryanbibat
Last active August 29, 2015 13:59
Show Gist options
  • Save bryanbibat/10445292 to your computer and use it in GitHub Desktop.
Save bryanbibat/10445292 to your computer and use it in GitHub Desktop.
Bootstrap First App
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>First App</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
<div class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<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 "First App", root_path, class: "navbar-brand" %>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><%= link_to "Home", root_path %></a></li>
<li><%= link_to "Posts", posts_path %></li>
</ul>
</div>
</div>
</div>
<div id="main">
<div class="container">
<div class="row">
<div class="col-md-12">
<%= yield %>
</div>
</div>
</div> <!--! end of .container -->
</div> <!--! end of #main -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment