Session 8: Exercises
NOTE: This is an incredibly involved exercise. You can do it!
Create two models, Chat (which has a name) and Message which belongs_to a chat. A chat has multiple messages.
Create a controller which responds to a given route /chats/:chat_name and displays the list of messages for the current chat.
Create a way to add a new message via a form on the chat page.