Ruby on rails 为什么jQuery验证插件不能在Heroku上运行?

Ruby on rails 为什么jQuery验证插件不能在Heroku上运行?,ruby-on-rails,heroku,jquery-validate,Ruby On Rails,Heroku,Jquery Validate,jQuery验证在本地工作,但在Heroku上不起作用。 控制台中没有关于它的错误。我该怎么办 编辑 在推到heroku之前,您是否预先编译了您的资产 RAILS_ENV=production bundle exec rake assets:precompile 你可以找到更多的信息 如果它不能解决您的问题,请在您的问题中提供heroku日志 RAILS_ENV=production bundle exec rake assets:precompile

jQuery验证在本地工作,但在Heroku上不起作用。 控制台中没有关于它的错误。我该怎么办

编辑


在推到heroku之前,您是否预先编译了您的资产

  RAILS_ENV=production bundle exec rake assets:precompile
你可以找到更多的信息

如果它不能解决您的问题,请在您的问题中提供heroku日志

  RAILS_ENV=production bundle exec rake assets:precompile