Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Rails-客户端验证不';我不能在AmazonEC2上工作_Ruby On Rails_Ruby_Amazon Ec2_Assets - Fatal编程技术网

Ruby on rails Rails-客户端验证不';我不能在AmazonEC2上工作

Ruby on rails Rails-客户端验证不';我不能在AmazonEC2上工作,ruby-on-rails,ruby,amazon-ec2,assets,Ruby On Rails,Ruby,Amazon Ec2,Assets,我正在使用gem,这是我在Gemfile中的内容: #gem "client_side_validations", "~> 3.2.6" gem 'client_side_validations', git: 'https://github.com/bcardarella/client_side_validations.git', branch: '3-1-stable' # working well on localhost as the line above Capistrano g

我正在使用gem,这是我在Gemfile中的内容:

#gem "client_side_validations", "~> 3.2.6"
gem 'client_side_validations', git: 'https://github.com/bcardarella/client_side_validations.git', branch: '3-1-stable' # working well on localhost as the line above
Capistrano gem用于部署到Amazon EC2,但当我部署代码并检查网站时,我在日志中看到以下错误:

ActionView::Template::Error (couldn't find file 'rails.validations'
  (in /home/deployer/xxx/releases/20130922134530/app/assets/javascripts/application.js:16)):
    3:     %title xxx
    4:     %meta{:name => "msvalidate.01", :content => "70FDF21E6271BE469BC86873DE55F921"}
    5:     = stylesheet_link_tag    "application", :media => "all"
    6:     = javascript_include_tag "application"
    7:     = filepicker_js_include_tag
    8:     %link{:href => 'http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic', :rel => 'stylesheet', :type => 'text/css'}
    9:     :javascript
  app/views/layouts/application.html.haml:6:in `_app_views_layouts_application_html_haml___4198895688777468705_70291650639660'
在EC2上安装这个gem似乎有一些问题。我在Heroku上的几个项目中使用了这个gem,一切都很好,但我无法让它在AmazonEC2上工作

有什么我遗漏的或是什么吗


谢谢

您是否在本地主机或生产环境上预编译了这些资产?不确定该如何正确执行。请在服务器上运行rake assets:precompile