Created
July 15, 2013 09:49
-
-
Save xuncheng/5998747 to your computer and use it in GitHub Desktop.
Rails default layout using bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title><%= content_for?(:title) ? yield(:title) : "Rails Bootstrap" %></title> | |
<meta name="description" content="<%= content_for?(:description) ? yield(:description) : "Rails Bootstrap" %>"> | |
<%= stylesheet_link_tag "application", :media => "all" %> | |
<%= javascript_include_tag "application" %> | |
<%= csrf_meta_tags %> | |
</head> | |
<body> | |
<header class="navbar navbar-fixed-top"> | |
<nav class="navbar-inner"> | |
<div class="container"> | |
<%= render 'layouts/navigation' %> | |
</div> | |
</nav> | |
</header> | |
<main role="main"> | |
<div class="container"> | |
<div class="content"> | |
<div class="row"> | |
<div class="span12"> | |
<%= render 'layouts/messages' %> | |
<%= yield %> | |
</div> | |
</div> | |
<footer> | |
</footer> | |
</div> | |
</div> | |
</main> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment