activities server in ruby on rails