Jquery没有在rails 3.2应用程序中工作?

试图让一个简单的显示/隐藏…它在js小提琴工作只是不在我的应用程序..

在我的views / user_steps / interests.html.erb中

 
Whatever you have to capture here

Whatever you have to capture here

Whatever you have to capture here

Whatever you have to capture here

Whatever you have to capture here


在我的assets / javascripts / user_steps.js中:

 $(".checkbox").click(function(){ $(this).next("div").toggle(); }); 

不要复制DOM元素的ID。 ID应该在页面上是唯一的,如果不是,javascript选择器可能变得不可靠。