Tag: 积极的纪录

Rails的update_attributes没有保存?

有没有替代update_attributes不保存logging? 所以我可以做这样的事情: @car = Car.new(:make => 'GMC') #other processing @car.update_attributes(:model => 'Sierra', :year => "2012", :looks => "Super Sexy, wanna make love to it") #other processing @car.save 顺便说一句,我知道我可以@car.model = 'Sierra' ,但我想更新他们在一条线上。