Skip to content

Instantly share code, notes, and snippets.

@xuncheng
Created July 15, 2013 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xuncheng/5998755 to your computer and use it in GitHub Desktop.
Save xuncheng/5998755 to your computer and use it in GitHub Desktop.
Rails default layout using bootstrap
!!!
%html
%head
%meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}
%title= content_for?(:title) ? yield(:title) : "Rails Bootstrap"
%meta{:content => content_for?(:description) ? yield(:description) : "Rails Bootstrap", :name => "description"}
= stylesheet_link_tag "application", :media => "all"
= javascript_include_tag "application"
= csrf_meta_tags
%body
%header.navbar.navbar-fixed-top
%nav.navbar-inner
.container
= render 'layouts/navigation'
%main{:role => "main"}
.container
.content
.row
.span12
= render 'layouts/messages'
= yield
%footer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment