event application in ruby on rails