此行出现错误
DT[!x %like% "ND", y := as.integer(as.yearmon(x) > as.yearmon("2016-01")) ]
它出错
//= require angularjs/rails/resource
的Gemfile
ActionView::Template::Error (couldn't find file 'angularjs/rails/resource' with type 'application/javascript'):
答案 0 :(得分:0)
您可以尝试使用angularjs-rails
gem
这对我来说很好用
gem 'angularjs-rails'
然后在您的.js
文件中,您可以要求
//= require angular
//= require angular-resource