2011-05-27 49 views

回答

0
in Active record callback 

after_touch do |user| 
    puts "You have touched an object" 
    end 
end 

据我的理解这个意思,如果定义

,当曾经我们希望与一些对象,然后做触摸后会被调用