anjlab / bootstrap-rails

Twitter Bootstrap CSS (with Sass flavour) and JS toolkits for Rails 3 projects
https://github.com/anjlab/bootstrap-rails
729 stars 96 forks source link

Problems running on Heroku #44

Closed kjakm closed 11 years ago

kjakm commented 11 years ago

I've been using bootstrap-rails fine locally. I just uploaded my project to Heroku but what I run db:migrate on the server I get the following error:

uninitialized constant Bootstrap::Rails::Engine::Sass
/app/vendor/bundle/ruby/2.0.0/bundler/gems/bootstrap-rails-7556d2c17115/lib/bootstrap-rails/engine.rb:6:in `block in <class:Engine>'
yury commented 11 years ago

You have to move sass and bootstrap-rails from development group to top level in your Gemfile.

kjakm commented 11 years ago

I have sass-rails in my assets group.

gem 'anjlab-bootstrap-rails', :require => 'bootstrap-rails',
                              :github => 'anjlab/bootstrap-rails',
                              :branch => '3.0.0'

is top level.

yury commented 11 years ago

You need to move sass-rails to top level too

On Monday, July 29, 2013 at 2:44 PM, Kieran McGrady wrote:

I have sass-rails in my assets group.
gem 'anjlab-bootstrap-rails', :require => 'bootstrap-rails', :github => 'anjlab/bootstrap-rails', :branch => '3.0.0'
is top level.

— Reply to this email directly or view it on GitHub (https://github.com/anjlab/bootstrap-rails/issues/44#issuecomment-21711968).

kjakm commented 11 years ago

Thanks that solved it.

yury commented 11 years ago

Also you can try to put both to assets groups.

kjakm commented 11 years ago

I'm using Rails 4 and read that the assets group has been removed so I've moved everything out into the top level. Thanks for your help and work on the gem!