标签: javascript ruby-on-rails ruby
我正在处理.js.erb文件,我需要将javascript变量传递给ruby on rails进行搜索,如何传递变量的值?
$scope.antennasDataInput = <%= AntennaInstalled.where(control_access_id: "variable javascript", type_antenna_id: 1) %>;
到
{{1}}