reverse engineer Ruby on Rails code