Rails Project for graphing many to one relationships