我正在开发一个 rals 3.2.8 应用程序。我在我的 Mac 上启动它并将其复制到一台 linux 机器上。linux机器给出以下错误行。
couldn't find file 'jquery.ui.all'
我检查了 Rails.application.config.assets.paths 并意识到它在我的 Mac 和 Linux 上是不同的。我错过了什么?
谢谢。
===========更新=============
我发现了一件奇怪的事情。即使我的开发环境和设计环境(我从 config/environments/development.rb 复制)是相同的,Rails.application.config.assets.paths 也是不同的。
这是从我的控制台捕获的。
[ssk-MBP]~/dev/test$ r c
Loading development environment (Rails 3.2.8)
1.8.7 :001 > Rails.application.config.assets.paths
=> ["/Users/ssk/dev/dentisusa/app/assets/images", "/Users/ssk/dev/dentisusa/app/assets/javascripts", "/Users/ssk/dev/dentisusa/app/assets/stylesheets", "/Users/ssk/dev/dentisusa/vendor/assets/javascripts", "/Users/ssk/dev/dentisusa/vendor/assets/stylesheets", "/Users/ssk/.rvm/gems/ree-1.8.7-2011.03@dentisusa/gems/jquery-rails-2.1.2/vendor/assets/javascripts", "/Users/ssk/.rvm/gems/ree-1.8.7-2011.03@dentisusa/gems/underscore-rails-1.3.1/vendor/assets/javascripts", "/Users/ssk/.rvm/gems/ree-1.8.7-2011.03@dentisusa/gems/bootstrap-sass-2.1.0.0/vendor/assets/images", "/Users/ssk/.rvm/gems/ree-1.8.7-2011.03@dentisusa/gems/bootstrap-sass-2.1.0.0/vendor/assets/javascripts", "/Users/ssk/.rvm/gems/ree-1.8.7-2011.03@dentisusa/gems/bootstrap-sass-2.1.0.0/vendor/assets/stylesheets", "/Users/ssk/.rvm/gems/ree-1.8.7-2011.03@dentisusa/gems/coffee-rails-3.2.2/lib/assets/javascripts", #<Pathname:/Users/ssk/dev/dentisusa/vendor/bundle/ruby/1.8/gems/jquery-ui-rails-2.0.0/vendor/assets/stylesheets>]
1.8.7 :002 > exit
[ssk-MBP]~/dev/test$ r c design
Loading design environment (Rails 3.2.8)
1.8.7 :001 > Rails.application.config.assets.paths
=> ["/Users/ssk/dev/dentisusa/app/assets/images", "/Users/ssk/dev/dentisusa/app/assets/javascripts", "/Users/ssk/dev/dentisusa/app/assets/stylesheets", "/Users/ssk/dev/dentisusa/vendor/assets/javascripts", "/Users/ssk/dev/dentisusa/vendor/assets/stylesheets", "/Users/ssk/.rvm/gems/ree-1.8.7-2011.03@dentisusa/gems/jquery-rails-2.1.2/vendor/assets/javascripts", #<Pathname:/Users/ssk/dev/dentisusa/vendor/bundle/ruby/1.8/gems/jquery-ui-rails-2.0.0/vendor/assets/stylesheets>]
1.8.7 :002 >
我做错了什么?
山姆