//Add a class我可以获得-Object的当前类(Es):但我不能在这上面加上“主动”.我尝试过几种方法element.attr('class', className + ' active');Uncaught TypeError: Object #<SVGPathElement> has no method 'attr'
我刚刚在我的模型上设置了一个新的布尔accepted属性,如下所示:但是,当我尝试像这样删除public setter时,我希望它是一个私有属性:
attr_protected :invitation.rb:17:in `private': undefined method `accepted=' for c