我这里有个问题。我正在开发一个使用 Rails 和 Backbone 构建的应用程序。在我的开发环境中,一切运行良好,但是当我将其部署到生产服务器时,我的 firebug 中显示了此错误:
TypeError: this._reset is not a function
...;return a.success=function(d,e,f){ba.add?"add":"reset",c&&c(b,...
有人可以帮我吗?
修订版 1
我已经预编译了资产,这是我的 Gemfile :
source 'https://rubygems.org'
gem 'rails', '3.2.0'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2'
gem 'devise', '1.5.3'
gem 'friendly_id'
gem 'pry'
gem "paperclip", "~> 2.5.0"
gem "kaminari"
#gem "ckeditor", "3.7.0.rc3"
gem "tinymce-rails"
gem "puma"
gem "tlsmail"
gem "rails-erd"
gem "juggernaut"
gem "thin"
#gem 'execjs'
#gem 'therubyracer'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer'
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
无论如何,我得到了这个新事实。我尝试在本地计算机上以生产模式运行该应用程序,它运行良好,但在我的服务器中却没有。有什么我忘了在我的服务器上安装的东西吗?