perfect ruby on rails