执行 rails g bootstrap:install 出错
编辑Gemfile,添加 gem 'therubyracer'
gem 'less-rails'
gem 'twitter-bootstrap-rails'
然后执行:bundle install
Bundle complete! 15 Gemfile dependencies, 61 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
执行结果:
rails generate bootstrap:install
Running via Spring preloader in process 258
nsert app/assets/javascripts/application.js
create app/assets/javascripts/bootstrap.js.coffee
create app/assets/stylesheets/bootstrap_and_overrides.css.less
create config/locales/en.bootstrap.yml
gsub app/assets/stylesheets/application.css