chat app rails 4 n pg