You need to download dashboard.css file from twitter bootstrap example dashboard source. Then added dashboard.css file in rails assets application.css file.
!!!
%html{:lang => "en"}
%head
%meta{:charset => "utf-8"}
%meta{:http => {:equiv => "X-UA-Compatible"}, :content => "IE=edge"}
%meta{:name => "viewport", :content => "width=device-width, initial-scale=1"}
%meta{:name => "description", :content => ""}
%meta{:name => "author", :content => ""}
%title Rails boot starter
= favicon_link_tag 'favicon.ico'
= stylesheet_link_tag 'application', :media => 'all', 'data-turbolinks-track' => true
= javascript_include_tag 'application', 'data-turbolinks-track' => true
= csrf_meta_tags
%body
<!-- fixed navbar top -->
%nav.navbar.navbar-inverse.navbar-fixed-top
.container-fluid
.navbar-header
%button{:type => "button", :class => "navbar-toggle collapsed", :data => {:toggle => "collapse", :target => "#navbar"}, :aria => {:expanded=>"false", :controls => "navbar"}}
%span.sr-only Toggle navigation
%span.icon-bar
%span.icon-bar
%span.icon-bar
%a.navbar-brand{:href => "#"} Project name
#navbar.navbar-collapse.collapse
%ul.nav.navbar-nav.navbar-right
%li= link_to 'Dashboard', '#'
%li= link_to 'Settings', '#'
%li= link_to 'Profile', '#'
%li= link_to 'Sign out', destroy_user_session_path, :method => :delete
%form.navbar-form.navbar-right
%input{type: "text", class: "form-control", placeholder: "Search..."}
<!-- container -->
%div.container-fluid
.row
<!-- sidebar left -->
.col-sm-3.col-md-2.sidebar
%ul.nav.nav-sidebar
%li.active
%a{href: '#'}
= 'Overview'
%span.sr-only (current)
%li= link_to 'Reports', '#'
%li= link_to 'Analytics', '#'
%li= link_to 'Export', '#'
%ul.nav.nav-sidebar
%li= link_to 'Nav item again', '#'
%li= link_to 'One more nav', '#'
%li= link_to 'Another nav item', '#'
<!-- content body -->
.col-sm-9.col-sm-offset-3.col-md-10.col-md-offset-2.main
%h1.page-header Dashboard
.row.placeholders
.col-xs-6.col-sm-3.placeholder
%img{:src => "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==", :width => "200", :height => "200", :class => "img-responsive", :alt => "Generic placeholder thumbnail"}
%h4 Label
%span.text-muted Something else
.col-xs-6.col-sm-3.placeholder
%img{:src => "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==", :width => "200", :height => "200", :class => "img-responsive", :alt => "Generic placeholder thumbnail"}
%h4 Label
%span.text-muted Something else
.col-xs-6.col-sm-3.placeholder
%img{:src => "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==", :width => "200", :height => "200", :class => "img-responsive", :alt => "Generic placeholder thumbnail"}
%h4 Label
%span.text-muted Something else
.col-xs-6.col-sm-3.placeholder
%img{:src => "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==", :width => "200", :height => "200", :class => "img-responsive", :alt => "Generic placeholder thumbnail"}
%h4 Label
%span.text-muted Something else
%h2.sub-header Section title
.table-responsive
%table.table.table-striped
%thead
%tr
%th #
%th Header
%th Header
%th Header
%th Header
%tbody
%tr
%td 1,001
%td Lorem
%td ipsum
%td dolor
%td sit
%tr
%td 1,002
%td amet
%td consectetur
%td adipiscing
%td elit
%tr
%td 1,003
%td Integer
%td nec
%td odio
%td Praesent
%tr
%td 1,003
%td libero
%td Sed
%td cursus
%td ante
%tr
%td 1,004
%td dapibus
%td diam
%td Sed
%td nisi
%tr
%td 1,005
%td Nulla
%td quis
%td sem
%td at
<!-- footer -->
%footer
%p.text-center
© Copyright 2017
Replace body content .col-sm-9.col-sm-offset-3.col-md-10.col-md-offset-2.main section by below to load view for each controller action.
.col-sm-9.col-sm-offset-3.col-md-10.col-md-offset-2.main
- if notice
.alert.alert-info
= notice
- elsif alert
.alert.alert-danger
= alert
= yield