title: Rails 4 + bootstrap set up assets
body: <p>I am trying to setup <em>bootstrap</em> on <em>Rails4</em> using <code>bootstrap-sass</code> and I am getting this famous error:</p>
  
  <pre><code>Sprockets::FileNotFound - couldn't find file 'bootstrap'
    (in app/assets/javascripts/application.js:16):
  </code></pre>
  
  <p>I have tried following:</p>
  
  <ol>
  <li><code>twitter/bootstrap</code> in <code>application.js</code></li>
  <li><code>gem 'bootstrap-sass', '~&gt; 3.1.0'</code> is outside group assets</li>
  <li>Also tried bunch of other things on internet</li>
  </ol>
  
  <p>I have spend lot of time taking different suggestions from other posts. How do I systematically debug this , <em>how to setup bootstrap-sass ?</em></p>
  
  <p><em>p.s:</em>
  Also been trying to get <code>twitter-bootstrap-rails</code> working with no luck.</p>
  
  <p>Here are some files</p>
  
  <p>application.js</p>
  
  <pre><code>//= require jquery
  //= require jquery_ujs
  //= require js-routes
  //= require bootstrap
  //= require_tree .
  //= require bootstrap-slider
  </code></pre>
  
  <p>application.css.scss</p>
  
  <pre><code> *= require jquery.ui.core
   *= require jquery.ui.theme
   *= require_self
   *= require bootstrap-slider
   *= require_tree .
   *= stub active_admin
  */
  
  @import "bootstrap";
  </code></pre>
  
  <p>Gemfile</p>
  
  <pre><code>source 'https://rubygems.org'
  ruby '2.0.0'
  gem 'rails', '4.0.0'
  gem 'sass-rails'
  gem 'coffee-rails', git: 'git://github.com/rails/coffee-rails.git'
  gem 'uglifier', '&gt;= 1.0.3'
  gem 'jquery-ui-rails'
  gem 'font-awesome-sass'
  gem 'less-rails'
  gem 'therubyracer', :platform=&gt;:ruby
  #gem 'twitter-bootstrap-rails'
  gem 'jquery-rails'
  #gem 'jquery_mobile_rails'
  gem 'js-routes'
  gem 'cancan'
  gem 'devise'
  gem 'figaro'
  gem 'haml-rails'
  gem 'pg'
  gem 'rolify'
  gem 'sendgrid'
  gem 'simple_form'
  gem 'thin'
  gem 'rake'
  
  #To use db for storing cookies instead cookie-store
  gem 'activerecord-session_store', github: 'rails/activerecord-session_store'
  
  group :development do
    gem 'better_errors'
    #gem 'binding_of_caller', :platforms=&gt;[:mri_19, :rbx]
    #Commenting out platforms part, because may be that's stopping this to be used on the dev machine'
    gem 'binding_of_caller'
    gem 'guard-bundler'
    gem 'guard-rails'
    gem 'guard-rspec'
    gem 'html2haml'
    gem 'quiet_assets'
    gem 'rb-fchange', :require=&gt;false
    gem 'rb-fsevent', :require=&gt;false
    gem 'rb-inotify', :require=&gt;false
  
    # Required with Rails panel chrome extension. This Gem should come after better_errors gem
    gem 'meta_request'
  end
  group :development, :test do
    gem 'factory_girl_rails'
    gem 'rspec-rails'
    gem 'pry-byebug'
    gem 'pry-stack_explorer'
    gem 'pry-rails'
    gem 'pry-debugger'
  end
  
  group :test do
    gem 'capybara'
    gem 'database_cleaner'
    gem 'email_spec'
  end
  
  group :production do
    gem 'rails_12factor'
  end
  
  gem 'high_voltage'
  
  #Linkedin Logins
  gem "linkedin"
  gem "omniauth"
  gem "omniauth-linkedin"
  
  gem "omniauth-facebook"
  
  #postgres use hstore in active record
  #gem 'activerecord-postgres-hstore'
  
  gem 'state_machine'
  gem "ruby-graphviz"
  
  
  #payments
  #gem 'stripe',:git =&gt; 'https://github.com/stripe/stripe-ruby'
  
  #gem 'anjlab-bootstrap-rails', :require =&gt; 'bootstrap-rails', :github =&gt; 'anjlab/bootstrap-rails'
  
  gem 'newrelic_rpm'
  
  gem 'pgbackups-archive'
  
  gem 'pg_search'
  
  gem 'acts-as-taggable-on'
  
  #gem 'activeadmin' , github: 'gregbell/active_admin'
  gem "activeadmin", git: "https://github.com/gregbell/active_admin"
  
  gem 'kaminari'
  gem 'bootstrap-slider-rails'
  gem 'bootstrap-sass', '~&gt; 3.1.0'
  </code></pre>