Rails - client_side_validations在Amazon EC2上不起作用

时间:2013-09-22 13:53:14

标签: ruby-on-rails ruby amazon-ec2 assets

我正在使用client side validations 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

对于部署到Amazon EC2使用Capistrano gem,但是当我部署代码并检查网站时,我在日志中看到以下错误:

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上安装这个宝石有一些麻烦。我在Heroku的几个项目中使用这个gem,一切运行良好,但我无法在Amazon EC2上运行。

我缺少什么或者什么?

谢谢

0 个答案:

没有答案