如何在Rails中使用控制器在javascript文件中创建条件 [英]How to create a condition in javascript file with the controller in Rails