a simple chat program with rails