Changing it to ruby on rails