Sample application in ruby on rails