I think the new functionality in edge rails will do what you want:
belongs_to :user, :touch => true
This way, whenever you save or delete a photo instance, it'll 'touch'
its parent user, and update the updated_at timestamp.
This will require you to upgrade to edge rails, though.
Looking at your attempt, though, I'm not sure this is what you want. Are
you also using the "updated_by" attribute of the photo to save the id of
the user that changed it?
Carlos Santana wrote: