ruby-on-rails - 找不到“twitter/bootstrap/responsive.less”

标签 ruby-on-rails ruby twitter-bootstrap less

我正在尝试将我的应用程序移动到另一台服务器,但我目前遇到以下错误。

'twitter/bootstrap/responsive.less' wasn't found (in /home/rails/**/app/assets/stylesheets/bootstrap_and_overrides.css.less)

我的 gemfile 中没有 :assets block ——因此之前针对此问题的解决方案不适用于我的情况。

这是我的 Gemfile

source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.1'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
#gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer',  platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0'

# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'

#For User Management
gem 'devise'
gem 'cancan'
gem 'rolify'

#For adding attachments
gem 'paperclip', github: 'thoughtbot/paperclip'

#For Bootstrap
gem 'therubyracer'
gem 'less-rails'
gem 'twitter-bootstrap-rails'
gem 'bootstrap_form'

gem 'debugger'

# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use unicorn as the app server
# gem 'unicorn'

# Use Capistrano for deployment
# gem 'capistrano-rails'

# Use debugger
#gem 'debugger'

感谢任何帮助!我或多或少对这个错误一无所知。

附加说明:我的应用程序在我当前的服务器上正常运行,但我无法让它在我的新服务器上运行一次,我已经尝试以相同的方式安装它。

最佳答案

当我没有在我的 gemfile 中指定特定版本时,我无意中将 twitter-bootstrap-rails 更新到了 3.2.0。以前的版本是 2.2.8,我回滚到现在一切正常。新版本缺少 responsive.less 文件。

关于ruby-on-rails - 找不到“twitter/bootstrap/responsive.less”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25513835/

相关文章:

ruby-on-rails - ActionController::UrlGenerationError 缺少必需的键:[:id]

ruby - 强制 RubyGems 使用 HTTP

html - Bootstrap 单选按钮

css - 更改 div 中 Bootstrap 按钮的大小

jQuery 文档完全加载图像、iframe 和 Ajax 的调用

ruby-on-rails - Rails 中的动态命名空间 Controller

javascript - 当没有安装 Flash 时,如何让 "Install Missing Plugin"黄条出现在 Firefox 中?

ruby-on-rails - MetaSearch Gem 使用轮胎 Gem 覆盖搜索方法

python - 从 Python 转换后,如何在 Ruby 中通过 HTTP 发布 JSON?

ruby-on-rails - 命名空间嵌套资源