Quiz,chat

I am new to rails framewrok ,i have experience in PHP and LInux background.I am looking for some tutorial or famous app to create a Quiz and chat .I have implemented quiz and flat file and db based quiz in PHP,but i wanted to do it in Rila.Looking forward for community help. . .