| | | | | 1 | 2 | 3 | | 4 | 5 | 6 | 7 | 8 | 9 | 10 | | 11 | 12 | 13 | 14 | 15 | 16 | 17 | | 18 | 19 | 20 | 21 | 22 | 23 | 24 | | 25 | 26 | 27 | 28 | 29 | 30 | 31 | |
|
请问关于rails 2.0.2 中的 updated_at可能有时候我在操作的时候不愿意更新这个字段的时间 应该怎么做?ActiveRecord::Base.record_timestamps = false #temporarily turn off magic column updates@page.update_attribute(:position, pos)ActiveRecord::Base.record_timestamps = true #turning updates...
|
|