Session 8: Exercises

NOTE: This is an incredibly involved exercise. You can do it!

Exercise 1:

Create two models, Chat (which has a name) and Message which belongs_to a chat. A chat has multiple messages.

Exercise 2:

Create a controller which responds to a given route /chats/:chat_name and displays the list of messages for the current chat.

Exercise 3:

Create a way to add a new message via a form on the chat page.