trying to debug activerecord